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

Fix failed github action CIs #674

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/ci_cpu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:
coverage run -m pytest --doctest-modules -p conftest --junitxml=unittest-py38-release-reports/junit.xml opacus
coverage report -i -m
- name: Store test results
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: unittest-py38-release-reports
path: unittest-py38-release-reports
Expand All @@ -80,7 +80,7 @@ jobs:
coverage run -m pytest --doctest-modules -p conftest --junitxml=unittest-py39-release-reports/junit.xml opacus
coverage report -i -m
- name: Store test results
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: unittest-py39-release-reports
path: unittest-py39-release-reports
Expand Down Expand Up @@ -123,7 +123,7 @@ jobs:
mkdir unittest-py39-nightly-reports
python -m pytest --doctest-modules -p conftest --junitxml=unittest-py39-nightly-reports/junit.xml opacus
- name: Store test results
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: unittest-py39-nightly-reports
path: unittest-py39-nightly-reports
Expand Down Expand Up @@ -151,7 +151,7 @@ jobs:
python -c "import torch; accuracy = torch.load('run_results_mnist_0.25_0.7_1.5_64_1.pt'); exit(0) if (accuracy[0]>0.78 and accuracy[0]<0.95) else exit(1)"
coverage report -i -m
- name: Store test results
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: mnist-cpu-reports
path: runs/mnist/test-reports
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/ci_gpu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ jobs:
python -c "import torch; accuracy = torch.load('run_results_mnist_0.25_0.7_1.5_64_1.pt'); exit(0) if (accuracy[0]>0.78 and accuracy[0]<0.95) else exit(1)"

- name: Store MNIST test results
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: mnist-gpu-reports
path: runs/mnist/test-reports
Expand All @@ -89,7 +89,7 @@ jobs:
python -c "import torch; model = torch.load('model_best.pth.tar'); exit(0) if (model['best_acc1']>0.4 and model['best_acc1']<0.49) else exit(1)"

- name: Store CIFAR10 test results
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: cifar10-gpu-reports
path: runs/cifar10/test-reports
Expand All @@ -104,7 +104,7 @@ jobs:
# python -c "import torch; accuracy = torch.load('run_results_imdb_classification.pt'); exit(0) if (accuracy>0.54 and accuracy<0.66) else exit(1)"

# - name: Store IMDb test results
# uses: actions/upload-artifact@v2
# uses: actions/upload-artifact@v4
# with:
# name: imdb-gpu-reports
# path: runs/imdb/test-reports
Expand All @@ -121,7 +121,7 @@ jobs:
# python -c "import torch; accuracy = torch.load('run_results_chr_lstm_classification.pt'); exit(0) if (accuracy>0.60 and accuracy<0.80) else exit(1)"

# - name: Store test results
# uses: actions/upload-artifact@v2
# uses: actions/upload-artifact@v4
# with:
# name: charlstm-gpu-reports
# path: runs/charlstm/test-reports
Expand Down
Loading