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

Grpc Stream #688

Open
wants to merge 4,202 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
4202 commits
Select commit Hold shift + click to select a range
ba37365
Merge pull request #627 from FedML-AI/dev/v0.7.0
fedml-alex Oct 26, 2022
7b90ab7
update jenkinsfile.
Oct 26, 2022
4027d08
Merge pull request #628 from FedML-AI/dev/v0.7.0
fedml-alex 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
e3ac995
Merge pull request #629 from FedML-AI/dev/v0.7.0
fedml-alex 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
f8bd2ba
Merge pull request #631 from FedML-AI/dev/v0.7.0
fedml-alex Oct 31, 2022
0251d03
display model url and update version to 0.7.341.
Oct 31, 2022
e3cbf69
Merge pull request #632 from FedML-AI/dev/v0.7.0
fedml-alex 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
d98b104
Merge pull request #634 from FedML-AI/dev/v0.7.0
fedml-alex Nov 2, 2022
5bad3b4
update jetson docs.
Nov 2, 2022
cf9d239
update new version to 0.7.343.
Nov 2, 2022
48bf479
Merge pull request #635 from FedML-AI/dev/v0.7.0
fedml-alex 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
b69ec42
Merge pull request #638 from FedML-AI/dev/v0.7.0
fedml-alex 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
3d336a3
Merge pull request #640 from FedML-AI/dev/v0.7.0
fedml-alex Nov 23, 2022
8b2d971
update fedml dockerfiles.
Nov 23, 2022
6ac4edf
Merge pull request #641 from FedML-AI/dev/v0.7.0
fedml-alex Nov 23, 2022
c732071
update build-fedml-docker in the jenkins pipeline.
Nov 23, 2022
2a912ad
Merge pull request #642 from FedML-AI/dev/v0.7.0
fedml-alex 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
e30bebf
Merge pull request #643 from FedML-AI/dev/v0.7.0
fedml-alex 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
5020239
Merge pull request #644 from FedML-AI/dev/v0.7.0
fedml-alex Nov 25, 2022
925f47a
update version and mqtt timeout for sending.
Nov 25, 2022
d60e8b9
Merge pull request #645 from FedML-AI/dev/v0.7.0
fedml-alex Nov 25, 2022
ddc88bd
update mqtt.
Nov 25, 2022
ba554ba
Merge pull request #646 from FedML-AI/dev/v0.7.0
fedml-alex Nov 25, 2022
1b940ab
update version.
Nov 25, 2022
0869c27
Merge pull request #647 from FedML-AI/dev/v0.7.0
fedml-alex 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
568f955
Merge pull request #650 from FedML-AI/dev/v0.7.0
fedml-alex Nov 27, 2022
70f3953
update yaml version.
Nov 27, 2022
7d53a4f
Merge pull request #651 from FedML-AI/dev/v0.7.0
fedml-alex Nov 27, 2022
70c0bc1
Adding tarfile member sanitization to extractall()
TrellixVulnTeam Nov 29, 2022
a5c6603
Update contribution_assessor_manager.py
chaoyanghe Nov 29, 2022
89c4ed1
0.7.350
chaoyanghe Nov 29, 2022
34e5bfc
Merge pull request #652 from TrellixVulnTeam/master
chaoyanghe Nov 29, 2022
4d4b7a8
Merge pull request #596 from FedML-AI/dev/v0.7.0
chaoyanghe Nov 29, 2022
0bb50ef
Merge pull request #653 from FedML-AI/test/v0.7.0
chaoyanghe Nov 29, 2022
bc2b2e0
update mqtt qos to 2 (means only once) to make the network more stabl…
Nov 30, 2022
f7cde5e
Merge pull request #654 from FedML-AI/dev/v0.7.0
fedml-alex 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
b0ffbd5
Merge pull request #655 from FedML-AI/dev/v0.7.0
fedml-alex 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
46910f2
Merge pull request #656 from FedML-AI/dev/v0.7.0
fedml-alex Nov 30, 2022
46e4866
update mqtt sending option to no waiting mode.
Nov 30, 2022
caf76f7
Merge pull request #657 from FedML-AI/dev/v0.7.0
fedml-alex Nov 30, 2022
601ae7e
fixed contribution issue.
Nov 30, 2022
7052544
Merge pull request #658 from FedML-AI/dev/v0.7.0
fedml-alex Nov 30, 2022
8f97df2
make actual rounds number for server and client correct.
Dec 1, 2022
3e5e40f
Merge pull request #659 from FedML-AI/dev/v0.7.0
fedml-alex 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
4d91827
update to v0.7.350
chaoyanghe Dec 13, 2022
750505f
v0.7.360
chaoyanghe Dec 13, 2022
c9fc4d6
Merge pull request #663 from FedML-AI/dev/v0.7.0
chaoyanghe Dec 13, 2022
e00ba3f
Merge pull request #664 from FedML-AI/test/v0.7.0
chaoyanghe Dec 13, 2022
a1f40a0
add role
chaoyanghe Dec 13, 2022
b5ad6e3
v0.7.361
chaoyanghe Dec 13, 2022
7cf098b
Merge pull request #665 from FedML-AI/dev/v0.7.0
chaoyanghe Dec 13, 2022
6a1a32a
Merge pull request #666 from FedML-AI/test/v0.7.0
chaoyanghe Dec 13, 2022
500138e
Make MQTT connection id for client and server more meaningful and red…
Dec 15, 2022
4611c4d
Merge branch 'dev/v0.7.0' of https://github.com/FedML-AI/FedML into d…
Dec 15, 2022
f3140e2
Revert "Make MQTT connection id for client and server more meaningful…
Dec 15, 2022
b7f3aab
update fedml docker.
Dec 15, 2022
0809c2c
restore files.(mqtt+cli...)
Dec 15, 2022
e3239fb
update version.
Dec 15, 2022
dcd0c2f
Merge pull request #669 from FedML-AI/dev/v0.7.0
fedml-alex Dec 15, 2022
5f99787
fix CDP example error
chaoyanghe Dec 15, 2022
53f11a8
Merge pull request #670 from FedML-AI/master
chaoyanghe Dec 15, 2022
d72258b
find the removed code back (due to a wrong submission by YH)
chaoyanghe Dec 16, 2022
11e9b56
Update client_diagnosis.py
chaoyanghe Dec 16, 2022
5a15d1d
0.7.370
chaoyanghe Dec 16, 2022
e37ba6e
0.7.375
chaoyanghe Dec 16, 2022
86608be
Update release_pip.sh
chaoyanghe Dec 16, 2022
99d6a0b
security module Dict -> OrderedDict; all tests clear
han-shanshan Dec 16, 2022
82e8774
update diagnosis cli for mqtt+s3 client and server and set mqtt+s3 se…
Dec 16, 2022
663c15b
Merge branch 'dev/v0.7.0' of https://github.com/FedML-AI/FedML into d…
Dec 16, 2022
a1e1bfb
update to v0.7.376
chaoyanghe Dec 16, 2022
200703d
defense test case
han-shanshan Dec 16, 2022
bdbf079
add more github runners
chaoyanghe Dec 16, 2022
03e6cb8
Update smoke_test_cross_silo_fedavg_defense_linux.yml
chaoyanghe Dec 16, 2022
6b552c7
0.7.377
chaoyanghe Dec 16, 2022
d44a5d3
Update smoke_test_simulation_mpi_linux.yml
chaoyanghe Dec 16, 2022
9a40932
fix issues in github action
chaoyanghe Dec 16, 2022
87a755a
bug fix for dl engine github actions
chaoyanghe Dec 16, 2022
b2d24db
Update smoke_test_simulation_mpi_linux.yml
chaoyanghe Dec 16, 2022
2350163
Update smoke_test_security.yml
chaoyanghe Dec 19, 2022
5d56685
set client id list to empty.
Dec 20, 2022
461f072
Merge branch 'dev/v0.7.0' of https://github.com/FedML-AI/FedML into d…
Dec 20, 2022
0f9d535
add model deployment cli, master, slave.
Dec 30, 2022
4502498
Merge pull request #682 from alex-liang-kh/dev/v0.7.0
fedml-alex Dec 30, 2022
5ec687f
update setup.py.
Dec 30, 2022
dc16897
update setup.py
Dec 30, 2022
b71f496
Merge pull request #683 from alex-liang-kh/dev/v0.7.0
fedml-alex Dec 30, 2022
a4b0661
update model deployment.
Dec 30, 2022
4ac7e06
update model monitor.
Dec 30, 2022
391ee1e
update model deployment.
Dec 30, 2022
398a2d0
Merge pull request #684 from alex-liang-kh/dev/v0.7.0
fedml-alex Dec 30, 2022
352a0b6
update model deployment cli and infer cmds.
Dec 30, 2022
1dcc8c6
debug model inference.
Dec 30, 2022
5a5d8bf
update triton deployment.
Dec 31, 2022
20e9b18
update triton deployment.
Dec 31, 2022
1b7def8
debug triton deployment.
Dec 31, 2022
ef6247e
debug triton deployment.
Dec 31, 2022
3b6f7d3
debug triton deployment.
Dec 31, 2022
f5b4328
debug triton deployment.
Dec 31, 2022
cb3769b
debug triton deployment.
Dec 31, 2022
d94c50d
debug triton deployment.
Dec 31, 2022
0c6adfc
debug triton deployment.
Dec 31, 2022
4ebc26b
debug triton deployment.
Dec 31, 2022
b9cf970
debug triton deployment.
Dec 31, 2022
7d0778b
debug triton deployment.
Dec 31, 2022
a4fe382
debug triton deployment.
Dec 31, 2022
e74f0b9
debug triton deployment.
Dec 31, 2022
c5b8be0
add inference host on cli.
Dec 31, 2022
397db58
update deployment infer host.
Dec 31, 2022
cc593e7
update model cli.
Dec 31, 2022
47b92dd
fixed infer host issue.
Dec 31, 2022
4ae811f
update inference url.
Dec 31, 2022
3f60a66
update model inference.
Dec 31, 2022
8eee082
Merge pull request #685 from alex-liang-kh/dev/v0.7.0
fedml-alex Dec 31, 2022
95e9afa
GRPC stream init
Amir-zsh Jan 2, 2023
16ca995
update model deployment cli.
Jan 2, 2023
cdb6fa4
Merge pull request #686 from alex-liang-kh/dev/v0.7.0
fedml-alex Jan 2, 2023
dd9b6b7
install and start redis server when login to master model device.
Jan 2, 2023
8a93111
update redis install cmds.
Jan 2, 2023
5faea23
update redis installation cmds.
Jan 2, 2023
5277513
update redis installation cmds.
Jan 2, 2023
db7ffa5
update model deployment cli.
Jan 2, 2023
ac89894
update model deployment cli.
Jan 2, 2023
88043fc
update model deployment cli.
Jan 2, 2023
db9dab2
update model deployment cli.
Jan 2, 2023
570164a
update model deployment cli.
Jan 2, 2023
4215e5c
update model deployment cli.
Jan 2, 2023
91c286d
update model deployment cli.
Jan 2, 2023
513a36c
update model deployment cli.
Jan 2, 2023
d8b62ca
update model deployment cli.
Jan 2, 2023
0a01c1a
update model deployment cli.
Jan 2, 2023
6a8143d
update model deployment cli.
Jan 2, 2023
5090c58
update model deployment cli.
Jan 2, 2023
c9fab28
update model deployment cli.
Jan 2, 2023
991b6ff
update model deployment cli.
Jan 2, 2023
ea72a6e
update model deployment cli.
Jan 2, 2023
7d42139
update model deployment cli.
Jan 2, 2023
f3406c6
update model deployment cli.
Jan 2, 2023
32d89ac
update model deployment cli.
Jan 2, 2023
e9ee5f0
update model deployment cli.
Jan 2, 2023
4890754
update model deployment cli.
Jan 2, 2023
9a475e8
update model deployment cli.
Jan 2, 2023
7b2ef48
update model deployment cli.
Jan 2, 2023
cb98b5b
update model deployment cli.
Jan 2, 2023
02ca9d1
update model deployment cli.
Jan 2, 2023
fe9d35b
update model deployment cli.
Jan 2, 2023
6715cf1
update model deployment cli.
Jan 2, 2023
7392eb9
update model deployment cli.
Jan 2, 2023
4860ed4
update model deployment cli.
Jan 2, 2023
74c0acf
update model deployment cli.
Jan 2, 2023
60b75e2
update model deployment cli.
Jan 2, 2023
fbb575f
update model deployment cli.
Jan 2, 2023
b1345b0
update model deployment cli.
Jan 2, 2023
49b0024
update model deployment cli.
Jan 2, 2023
70b46ac
update model deployment cli.
Jan 2, 2023
1924fa3
update model deployment cli.
Jan 2, 2023
e24dec0
update model deployment cli.
Jan 2, 2023
3e367bf
update model deployment cli.
Jan 2, 2023
2a53727
update model deployment cli.
Jan 2, 2023
97b473f
Merge pull request #687 from alex-liang-kh/dev/v0.7.0
fedml-alex Jan 2, 2023
1d5ae23
GRPC Streaming Cleaned
Amir-zsh Jan 3, 2023
fed4636
Merge branch 'dev/v0.7.0' into grpc-stream
Amir-zsh Jan 3, 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
  •  
  •  
  •  
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