diff --git a/.github/workflows/ci_cpu.yml b/.github/workflows/ci_cpu.yml index 428d9741..485e6693 100644 --- a/.github/workflows/ci_cpu.yml +++ b/.github/workflows/ci_cpu.yml @@ -52,13 +52,20 @@ jobs: - name: Run unit tests run: | mkdir unittest-py38-release-reports - coverage run -m pytest --doctest-modules -p conftest --junitxml=unittest-py38-release-reports/junit.xml opacus + coverage run -m pytest --doctest-modules -p conftest opacus coverage report -i -m + coverage xml -i - name: Store test results uses: actions/upload-artifact@v4 with: name: unittest-py38-release-reports path: unittest-py38-release-reports + - name: Send coverage to Coveralls (parallel) + uses: coverallsapp/github-action@v2 + with: + format: cobertura + parallel: true + flag-name: run-1 unittest_py39_torch_release: runs-on: ubuntu-latest @@ -78,12 +85,18 @@ jobs: run: | mkdir unittest-py39-release-reports coverage run -m pytest --doctest-modules -p conftest --junitxml=unittest-py39-release-reports/junit.xml opacus - coverage report -i -m + coverage xml -i - name: Store test results uses: actions/upload-artifact@v4 with: name: unittest-py39-release-reports path: unittest-py39-release-reports + - name: Send coverage to Coveralls (parallel) + uses: coverallsapp/github-action@v2 + with: + format: cobertura + parallel: true + flag-name: run-2 prv_accountant_values: runs-on: ubuntu-latest @@ -155,6 +168,11 @@ jobs: with: name: mnist-cpu-reports path: runs/mnist/test-reports + - name: Send coverage to Coveralls (parallel) + uses: coverallsapp/github-action@v2 + with: + parallel: true + flag-name: run-3 ######## FINISH COVERALLS ########## finish_coveralls_parallel: @@ -168,3 +186,4 @@ jobs: with: github_token: ${{ secrets.GITHUB_TOKEN }} parallel-finished: true + carryforward: "run-1,run-2,run-3"