Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev/v0.7.0 #610

Open
wants to merge 4,053 commits into
base: dev/v0.7.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
4053 commits
Select commit Hold shift + click to select a range
574eac7
foolsgold remove use_memory parameter
han-shanshan Sep 23, 2022
91ba190
foolsgold debugging
chaoyanghe Sep 23, 2022
789de86
Merge branch 'dev/v0.7.0' of https://github.com/FedML-AI/FedML into d…
chaoyanghe Sep 23, 2022
bb2109b
fixed bootstrap log level to info.
Sep 23, 2022
360d20b
Merge branch 'dev/v0.7.0' of https://github.com/FedML-AI/FedML into d…
Sep 23, 2022
2fde71b
update setup version.
Sep 23, 2022
d3c0ee6
Merge pull request #583 from FedML-AI/dev/v0.7.0
fedml-alex Sep 23, 2022
f213744
Merge pull request #584 from FedML-AI/test/v0.7.0
fedml-alex Sep 23, 2022
4c015db
change the model for defense method to CIFAR-10
chaoyanghe Sep 23, 2022
94e85cc
defense method debug
chaoyanghe Sep 23, 2022
5096e39
add privacy budget accountant
Nicole456 Sep 24, 2022
341bebf
Merge branch 'dev/v0.7.0' of https://github.com/FedML-AI/FedML into d…
Nicole456 Sep 24, 2022
e6b41a5
Update naive_budget_accountant.py
Nicole456 Sep 24, 2022
b10827f
a
phenomenal-manish Sep 24, 2022
a5d30b7
sp optimizers
wizard1203 Sep 24, 2022
4aeb10c
Merge branch 'dev/v0.7.0' of https://github.com/wizard1203/FedML into…
wizard1203 Sep 24, 2022
16e1a0b
Update accountant.py
Nicole456 Sep 24, 2022
06e719d
Merge remote-tracking branch 'base/dev/v0.7.0' into dev/v0.7.0
wizard1203 Sep 24, 2022
9add80e
Merge branch 'dev/v0.7.0' of https://github.com/wizard1203/FedML into…
wizard1203 Sep 24, 2022
c20f4a3
test fedml flow
wizard1203 Sep 24, 2022
3aa646b
Merge pull request #585 from wizard1203/dev/v0.7.0
chaoyanghe Sep 24, 2022
1593442
Merge branch 'test/v0.7.0' into dev/v0.7.0
chaoyanghe Sep 24, 2022
9c7daac
Update device.py
chaoyanghe Sep 24, 2022
7edd99f
Add three sigma defense
han-shanshan Sep 24, 2022
360b24c
foolsgold numpy add .cpu()
han-shanshan Sep 25, 2022
98bdef2
update get_started docs.
Sep 25, 2022
e98bb1d
Merge branch 'dev/v0.7.0' of https://github.com/FedML-AI/FedML into d…
Sep 25, 2022
db0a916
add device killed status and update new version.
Sep 25, 2022
324a710
update bootstrap on windows.
Sep 25, 2022
b70b214
Merge pull request #586 from FedML-AI/dev/v0.7.0
fedml-alex Sep 25, 2022
3a9ab71
Merge pull request #587 from FedML-AI/test/v0.7.0
fedml-alex Sep 25, 2022
07f3bc2
Modified Home Page ACCURACY Not updated
Sep 26, 2022
5e4ce57
new
phenomenal-manish Sep 26, 2022
d0c7e97
3 sigma - foolsgold score remove rescaling
han-shanshan Sep 27, 2022
ae6be69
foolsgold example
chaoyanghe Sep 27, 2022
c56f478
Merge branch 'dev/v0.7.0' of https://github.com/FedML-AI/FedML into d…
chaoyanghe Sep 27, 2022
9df86ec
defense example - update config
chaoyanghe Sep 27, 2022
7a4364e
Merge branch 'dev/v0.7.0' of github.com:FedML-AI/FedML into dev/v0.7.0
Sep 27, 2022
c5f208c
update bootstrap on windows in fedcv-object-detection app.
Sep 27, 2022
4b2eab5
Merge branch 'dev/v0.7.0' of https://github.com/FedML-AI/FedML into d…
Sep 27, 2022
cfa2787
add gpu device info for fedml env
chaoyanghe Sep 27, 2022
d9cc7d9
Merge branch 'dev/v0.7.0' of https://github.com/FedML-AI/FedML into d…
chaoyanghe Sep 27, 2022
ac58556
attack and defense example on cifar10 and resnet56
phenomenal-manish Sep 28, 2022
620bba0
attack and defense defense example of cifar10 and resnet56
phenomenal-manish Sep 28, 2022
bdb2af8
retire is_mobile args
chaoyanghe Sep 28, 2022
0fde6a6
Merge branch 'dev/v0.7.0' of https://github.com/FedML-AI/FedML into d…
chaoyanghe Sep 28, 2022
dcc6210
attacker - set extra_auxiliary_info to global model
han-shanshan Sep 29, 2022
41e096d
example remove pretrained model
han-shanshan Sep 29, 2022
d17a11a
3sigma + geo median
han-shanshan Sep 29, 2022
f1f40a0
0.7.328
chaoyanghe Sep 30, 2022
f8b602e
draft
wizard1203 Sep 30, 2022
80d89d7
fix security issue of PB library
chaoyanghe Sep 30, 2022
5747d78
defense example - revert to default setting (mnist + lr)
han-shanshan Sep 30, 2022
3ff4afd
attack and defense example - update torch_mpi.py
han-shanshan Sep 30, 2022
c2fc235
scaffold
wizard1203 Oct 2, 2022
ed0abef
add update_dataset() interface for client_trainer
chaoyanghe Oct 2, 2022
b241a90
byzantine attack add device
han-shanshan Oct 3, 2022
c08eee0
defense example - change to MQTT_S3 backend
han-shanshan Oct 3, 2022
0345672
Update fedml_server_manager.py
chaoyanghe Oct 3, 2022
cd8812a
Merge branch 'dev/v0.7.0' of https://github.com/FedML-AI/FedML into d…
chaoyanghe Oct 3, 2022
3a3ed4e
Update fedml_server_manager.py
chaoyanghe Oct 3, 2022
f3c46d3
optimized 3sigma defense
han-shanshan Oct 3, 2022
e65ae39
enable personalized model parameters for each client
chaoyanghe Oct 3, 2022
fd24afa
Merge branch 'dev/v0.7.0' of https://github.com/FedML-AI/FedML into d…
chaoyanghe Oct 3, 2022
829885d
0.7.330
chaoyanghe Oct 3, 2022
7b7ff5d
remove comments related to gpu mapping.md
han-shanshan Oct 4, 2022
d0766b7
update cli.
Oct 4, 2022
2bcf242
Merge branch 'dev/v0.7.0' of https://github.com/FedML-AI/FedML into d…
Oct 4, 2022
a9d65e7
update samples.
Oct 4, 2022
6d41fd8
update version.
Oct 4, 2022
f61df4c
update logs.
Oct 4, 2022
f80b23e
update bootstrap shell from sh to bash.
Oct 4, 2022
6f0647f
update bootstrap.sh.
Oct 5, 2022
cb940ee
add local cache functions
wizard1203 Oct 5, 2022
29e2da3
fix sp bugs
wizard1203 Oct 6, 2022
ffa5ea0
fix sp-mime init missing issue.
Oct 6, 2022
7e0fd56
add nccl-fedavg init file.
Oct 7, 2022
837155c
update version.
Oct 7, 2022
529a000
optimized krum (geometric median) to original (square distances)
han-shanshan Oct 7, 2022
709df15
add lr_cifar10 model
han-shanshan Oct 8, 2022
0a3379e
add dp budget accountant
Nicole456 Oct 9, 2022
6b70b89
add web3 storage and theta edge store, update bootstrap in the examples.
Oct 9, 2022
f46e47c
Merge branch 'dev/v0.7.0' of https://github.com/FedML-AI/FedML into d…
Oct 9, 2022
c3fd2b9
update version.
Oct 9, 2022
9e0b20c
update dependency lib.
Oct 9, 2022
cf72aa9
update version.
Oct 9, 2022
f7c11fb
update dependency lib.
Oct 9, 2022
2359376
update version.
Oct 9, 2022
19445bc
update dependency libs.
Oct 9, 2022
f4f4d1b
update mnist-mqtt-s3 example doc about the client_id_list param.
Oct 10, 2022
6075782
new dist hierarchical trainer
wizard1203 Oct 13, 2022
3b7e928
update example config in docs.
Oct 13, 2022
fb1be4d
add Imagenet
wizard1203 Oct 15, 2022
ab338fe
add test things
wizard1203 Oct 15, 2022
bd6fb05
add new test things
wizard1203 Oct 15, 2022
2114427
a
wizard1203 Oct 15, 2022
e7d928f
XMerge branch 'dev/v0.7.0' of https://github.com/wizard1203/FedML int…
wizard1203 Oct 15, 2022
bf0923c
code refactoring
han-shanshan Oct 21, 2022
0529b23
backdoor attack - model replacement
han-shanshan Oct 22, 2022
7d57ee1
update a defense: compute score distributions in each round
han-shanshan Oct 23, 2022
ea7be6f
update fedml docker build files.
Oct 24, 2022
f1325ba
add fedml docker build script.
Oct 24, 2022
bd78b4f
update dependency libs.
Oct 25, 2022
b3a45f2
release new version.
Oct 25, 2022
34eafe1
new arguments
wizard1203 Oct 25, 2022
a093e7f
update fedml dockerfile.
Oct 25, 2022
8308fac
update fedml dockerfile.
Oct 25, 2022
5f331be
update fedml dockefile.
Oct 25, 2022
39dc733
update fedml dockerfile.
Oct 25, 2022
6de660f
update fedml dockerfile.
Oct 25, 2022
2ebf952
update fedml dockerfile.
Oct 25, 2022
afc34ce
update fedml dockerfile.
Oct 25, 2022
321f5f5
update fedml dockerfile and jenkinsfile.
Oct 25, 2022
4c129ae
update fedml dockerfile.
Oct 25, 2022
dfa5319
update fedml dockerfile and jenkinsfile.
Oct 25, 2022
37c544b
update fedml dockerfile and jenkinsfile.
Oct 25, 2022
a1804a6
update pylint yml.
Oct 26, 2022
9ab4249
update pylint yml.
Oct 26, 2022
f0ec455
update pylint yml.
Oct 26, 2022
a10f41e
update pylint yml.
Oct 26, 2022
1747e4a
update github actions.
Oct 26, 2022
9e507ea
update pylint yml.
Oct 26, 2022
7e74642
update pylint yml.
Oct 26, 2022
2521386
update github actions.
Oct 26, 2022
e6eccb6
update pylint yml.
Oct 26, 2022
1114ba2
update pylint yml.
Oct 26, 2022
0dd48df
update github actions.
Oct 26, 2022
ef623a5
update github action.
Oct 26, 2022
7f17330
update github action.
Oct 26, 2022
c7be1e0
update pylint yml.
Oct 26, 2022
7de4c16
update github actions.
Oct 26, 2022
e91f66c
update github actions.
Oct 26, 2022
32386f1
update fedml dockerfile for arm64.
Oct 26, 2022
926bf7b
update fedml dockerfile and github actions.
Oct 26, 2022
33cae6b
update fedml dockerfile.
Oct 26, 2022
6698acb
update docker-build docs.
Oct 26, 2022
d623509
update base docker.
Oct 26, 2022
7b90ab7
update jenkinsfile.
Oct 26, 2022
ffcf315
update jenkinsfile.
Oct 27, 2022
8202430
update mpi action.
Oct 27, 2022
bd0b220
update mpi action.
Oct 27, 2022
1c3948b
update mpi action.
Oct 27, 2022
4517379
update mpi action.
Oct 27, 2022
d72ffc3
update mpi action.
Oct 27, 2022
eb437f0
update mpi action.
Oct 27, 2022
5a02f59
update mpi action.
Oct 27, 2022
0c83dcd
update mpi action.
Oct 27, 2022
28bafed
update mpi action.
Oct 27, 2022
1c1a6d6
update mpi action.
Oct 27, 2022
f092808
update mpi action.
Oct 27, 2022
aae95b8
update mpi action.
Oct 27, 2022
884c734
update mpi action.
Oct 27, 2022
bcdde90
update fedml docker building files and add diagnosis cli.
Oct 31, 2022
a991e13
update diagnosis readme.
Oct 31, 2022
0e0de3c
update version to 0.7.340.
Oct 31, 2022
0251d03
display model url and update version to 0.7.341.
Oct 31, 2022
e231ed6
combine l2 scores with cosine scores
han-shanshan Oct 31, 2022
ca18b7a
code refactoring
han-shanshan Nov 1, 2022
04742a1
remove 2 useless params
han-shanshan Nov 1, 2022
0db55f1
cross round defense
han-shanshan Nov 1, 2022
2c4df62
outlier detection
han-shanshan Nov 1, 2022
85d3948
add device id flag when running from fedml docker and add diagnosis n…
Nov 2, 2022
babc27b
Merge branch 'dev/v0.7.0' of https://github.com/FedML-AI/FedML into d…
Nov 2, 2022
8c416ca
update new version to 0.7.342.
Nov 2, 2022
5bad3b4
update jetson docs.
Nov 2, 2022
cf9d239
update new version to 0.7.343.
Nov 2, 2022
2cc2849
outlier detection - check whether attack happened
han-shanshan Nov 7, 2022
4a1a416
lazy worker
han-shanshan Nov 7, 2022
fccbebe
update dockerfile for device image.
Nov 8, 2022
8ceee91
Merge branch 'dev/v0.7.0' of https://github.com/FedML-AI/FedML into d…
Nov 8, 2022
930431d
webjs platform
RyanTrojans Nov 8, 2022
eb8528e
add mnn lib in the dockerfile for test and release env.
Nov 8, 2022
7662b1c
Merge branch 'dev/v0.7.0' of https://github.com/FedML-AI/FedML into d…
RyanTrojans Nov 8, 2022
4dbfe63
bugfix string is browser device
RyanTrojans Nov 8, 2022
9660015
update diagnosis with version info.
Nov 12, 2022
841ec7e
remove redundant communication for S3 uploading for server->client me…
Nov 13, 2022
b78f5b1
fix(fedcv): yolov5 evaluation(#607)
beiyuouo Nov 16, 2022
3f3f236
Update README.md
chaoyanghe Nov 19, 2022
9d42adf
GTG implemented
Nov 19, 2022
df47642
GTG implemented
Nov 19, 2022
3fa92bb
GTG implemented
Nov 19, 2022
740914b
[bug] fix the wrong type (dict) of cross-silo CDP/LDP aggregated mode…
chaoyanghe Nov 21, 2022
2039d8e
add MPI config for defense example
chaoyanghe Nov 21, 2022
32ed655
GTG implemented
Nov 21, 2022
a82dfc8
GTG implemented
Nov 21, 2022
8e7adc3
GTG implemented
Nov 21, 2022
90e371a
Merge remote-tracking branch 'origin/dev/v0.7.0' into dev/v0.7.0
Nov 21, 2022
070a36a
code review for GTG-shapley value
chaoyanghe Nov 22, 2022
c1baf92
Update gtg_shapley_value.py
bbuyukates Nov 22, 2022
0929cf3
updated LOO
bbuyukates Nov 22, 2022
ff07a22
clean up
bbuyukates Nov 22, 2022
b565a3a
Update naive_shapley_value.py
bbuyukates Nov 22, 2022
54d4e69
code review for core/contribution
chaoyanghe Nov 22, 2022
e39e354
Delete naive_shapley_value.py
chaoyanghe Nov 22, 2022
ebc6e63
new method for SV approximation: MR
bbuyukates Nov 22, 2022
a0ddcbe
fixed module missing error.
Nov 23, 2022
ed35c36
update version.
Nov 23, 2022
8b2d971
update fedml dockerfiles.
Nov 23, 2022
c732071
update build-fedml-docker in the jenkins pipeline.
Nov 23, 2022
c133b86
add mpi4py to fedml docker.
Nov 24, 2022
fb9f61c
remove lazy worker detection; add get_malicious_client_idxs
han-shanshan Nov 24, 2022
1d71609
add get_malicious_client_idx at server_aggregator.py
han-shanshan Nov 24, 2022
c350b96
add get_malicious_client_idx at server_aggregator.py
han-shanshan Nov 24, 2022
729f667
add get_malicious_client_idx to FedMLDefender
han-shanshan Nov 25, 2022
188a92f
fixed not exist key issue in the cross-device module.
Nov 25, 2022
a7ad61d
Merge branch 'dev/v0.7.0' of https://github.com/FedML-AI/FedML into d…
Nov 25, 2022
fdb181b
add texts for `fedml logs` in docs.
Nov 25, 2022
925f47a
update version and mqtt timeout for sending.
Nov 25, 2022
ddc88bd
update mqtt.
Nov 25, 2022
1b940ab
update version.
Nov 25, 2022
ebec87f
[contribution assessment] end to end development is done. need to debug
chaoyanghe Nov 26, 2022
e9051c0
Update __init__.py
chaoyanghe Nov 27, 2022
cbca3e0
debug contribution assessment
chaoyanghe Nov 27, 2022
dcc977c
contribution assessment debugging
chaoyanghe Nov 27, 2022
c3b76f7
update pyyaml to new version.
Nov 27, 2022
ef951af
Merge branch 'dev/v0.7.0' of https://github.com/FedML-AI/FedML into d…
Nov 27, 2022
f051ba8
update pyyaml to new version.
Nov 27, 2022
70f3953
update yaml version.
Nov 27, 2022
a5c6603
Update contribution_assessor_manager.py
chaoyanghe Nov 29, 2022
89c4ed1
0.7.350
chaoyanghe Nov 29, 2022
bc2b2e0
update mqtt qos to 2 (means only once) to make the network more stabl…
Nov 30, 2022
e77aac8
outlier detection --> orderedDict
han-shanshan Nov 30, 2022
b57e541
print --> logging
han-shanshan Nov 30, 2022
990c653
model_replacement_backdoor_attack.py add .to(device)
han-shanshan Nov 30, 2022
7a1dd58
model_replacement_backdoor_attack.py put global model to gpu
han-shanshan Nov 30, 2022
fe8d60e
update mqtt publish wait time.
Nov 30, 2022
a8e2607
Merge branch 'dev/v0.7.0' of https://github.com/FedML-AI/FedML into d…
Nov 30, 2022
46e4866
update mqtt sending option to no waiting mode.
Nov 30, 2022
601ae7e
fixed contribution issue.
Nov 30, 2022
8f97df2
make actual rounds number for server and client correct.
Dec 1, 2022
cd00d05
update log comments in the fedml config file.
Dec 2, 2022
0027aba
fix some minor issues on FedNLP production
chaoyanghe Dec 7, 2022
10a5d93
add cdp
Nicole456 Dec 9, 2022
757fea5
add dpfedavg example
Nicole456 Dec 9, 2022
d4679f6
update dp
Nicole456 Dec 9, 2022
6029e7c
add progress bar for uploading/downloading model with S3
chaoyanghe Dec 12, 2022
f8309e6
Update mqtt_manager.py
fedml-alex Dec 12, 2022
7a300b2
Update fedml_config.yaml
chaoyanghe Dec 12, 2022
9a6c757
Update text_classification_utils.py
chaoyanghe Dec 12, 2022
14e8687
dp code review
han-shanshan Dec 12, 2022
f40f1ef
Update fedml_trainer.py
chaoyanghe Dec 12, 2022
738dad5
Update device.py
chaoyanghe Dec 12, 2022
a326513
a
wizard1203 Dec 12, 2022
be78726
a
wizard1203 Dec 13, 2022
f9ed9ea
a
wizard1203 Dec 13, 2022
77ffd56
a
wizard1203 Dec 13, 2022
c4995e4
debugged fedDLC
wizard1203 Dec 20, 2022
9ca40a5
debuged feddlc
wizard1203 Dec 26, 2022
e8951fb
adding atomo compressor
Dec 29, 2022
9d12023
update
wizard1203 Feb 12, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
190 changes: 190 additions & 0 deletions .github/workflows/build_wheels_and_releases.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,190 @@
name: Build-Wheels-PyPi
# https://github.com/pypa/cibuildwheel
# Controls when the workflow will run
on:
pull_request:
branches: [ master ]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

jobs:
# Build the wheels for Linux, Windows and macOS for Python 3.8 and newer
build_wheels:
name: Build wheel for cp${{ matrix.python }}-${{ matrix.platform_id }}-${{ matrix.manylinux_image }}
runs-on: ${{ matrix.os }}
defaults:
run:
shell: bash
working-directory: python

strategy:
# Ensure that a wheel builder finishes even if another fails
fail-fast: false
matrix:
include:
# Window 64 bit
- os: windows-2019
python: 38
bitness: 64
platform_id: win_amd64
- os: windows-latest
python: 39
bitness: 64
platform_id: win_amd64
- os: windows-latest
python: 310
bitness: 64
platform_id: win_amd64

# Window 32 bit
- os: windows-latest
python: 38
bitness: 32
platform_id: win32
- os: windows-latest
python: 39
bitness: 32
platform_id: win32

# Linux 64 bit manylinux2014
- os: ubuntu-latest
python: 38
bitness: 64
platform_id: manylinux_x86_64
manylinux_image: manylinux2014
- os: ubuntu-latest
python: 39
bitness: 64
platform_id: manylinux_x86_64
manylinux_image: manylinux2014

# NumPy on Python 3.10 only supports 64bit and is only available with manylinux2014
- os: ubuntu-latest
python: 310
bitness: 64
platform_id: manylinux_x86_64
manylinux_image: manylinux2014

# MacOS x86_64
- os: macos-latest
bitness: 64
python: 38
platform_id: macosx_x86_64
- os: macos-latest
bitness: 64
python: 39
platform_id: macosx_x86_64
- os: macos-latest
bitness: 64
python: 310
platform_id: macosx_x86_64

# MacOS arm64
- os: macos-latest
bitness: 64
python: 38
platform_id: macosx_arm64
- os: macos-latest
bitness: 64
python: 39
platform_id: macosx_arm64
- os: macos-latest
bitness: 64
python: 310
platform_id: macosx_arm64

steps:
- name: Checkout fedml
uses: actions/checkout@v3

- name: Setup Python
uses: actions/setup-python@v4
#with:
# python-version: '3.9'

- name: Build and test wheels
env:
CIBW_BUILD: cp${{ matrix.python }}-${{ matrix.platform_id }}
CIBW_ARCHS: all
CIBW_MANYLINUX_X86_64_IMAGE: ${{ matrix.manylinux_image }}
CIBW_MANYLINUX_I686_IMAGE: ${{ matrix.manylinux_image }}
CIBW_TEST_SKIP: "*-macosx_arm64"
CIBW_REPAIR_WHEEL_COMMAND_WINDOWS: bash build_tools/github/repair_windows_wheels.sh {wheel} {dest_dir} ${{ matrix.bitness }}
CIBW_BEFORE_TEST_WINDOWS: bash build_tools/github/build_minimal_windows_image.sh ${{ matrix.python }} ${{ matrix.bitness }}
CIBW_TEST_COMMAND: bash {project}/build_tools/github/test_wheels.sh
CIBW_TEST_COMMAND_WINDOWS: bash {project}/build_tools/github/test_windows_wheels.sh ${{ matrix.python }} ${{ matrix.bitness }}
CIBW_BUILD_VERBOSITY: 1

#run: bash build_tools/github/build_wheels.sh
run: |
python -m pip install -U wheel setuptools
python setup.py sdist bdist_wheel
pwd
ls dist/*.whl
ls dist/*.tar.gz

- name: Upload source zip file
uses: actions/upload-artifact@v3
with:
path: python/dist/*.tar.gz

- name: Upload Wheels
uses: actions/upload-artifact@v3
with:
path: python/dist/*.whl

# Build the source distribution under Linux
# build_sdist:
# name: Source distribution
# needs: [ build_wheels ]
# runs-on: ubuntu-latest
# defaults:
# run:
# shell: bash
# working-directory: python
#
# steps:
# - name: Checkout fedml
# uses: actions/checkout@v3
#
# - name: Setup Python
# uses: actions/setup-python@v4
# with:
# python-version: '3.9' # update once build dependencies are available
#
# - name: Build source distribution
# run: bash build_tools/github/build_source.sh
#
# - name: Test source distribution
# run: bash build_tools/github/test_source.sh
# env:
# OMP_NUM_THREADS: 2
# OPENBLAS_NUM_THREADS: 2
#
# - name: Store artifacts
# uses: actions/upload-artifact@v3
# with:
# path: python/dist/*.tar.gz

upload_pypi:
name: Upload pypi
needs: [ build_wheels ]
runs-on: ubuntu-latest
# upload to PyPI on every tag starting with 'v'
# if: github.event_name == 'push' && contains(github.event.comment, 'release v')
# alternatively, to publish when a GitHub Release is created, use the following rule:
# if: github.event_name == 'release' && github.event.action == 'published'
steps:
- uses: actions/download-artifact@v3
with:
name: artifact
path: python/dist

- uses: pypa/[email protected]
with:
skip_existing: true
packages_dir: python/dist
user: ${{ secrets.PYPI_USER_NAME }}
password: ${{ secrets.PYPI_PASSWORD }}
# To test: repository_url: https://test.pypi.org/legacy/
Loading