From 5aa697d27a743591c5baa484d2522d1499fbc174 Mon Sep 17 00:00:00 2001 From: Thomas Robitaille Date: Wed, 5 Jun 2024 12:51:42 +0100 Subject: [PATCH] Revert "Merge pull request #199 from pllim/codecov-upload-new-job" This reverts commit 95906bb726f4e57808491a76d7f24ee93795d0db, reversing changes made to 20420273b0bb89cdc9f42234423a9e23b645caf5. --- .github/workflows/tox.yml | 31 +------------------------------ 1 file changed, 1 insertion(+), 30 deletions(-) diff --git a/.github/workflows/tox.yml b/.github/workflows/tox.yml index 6f436f0..302d604 100644 --- a/.github/workflows/tox.yml +++ b/.github/workflows/tox.yml @@ -223,38 +223,9 @@ jobs: with: paths: "**/results.xml" - - name: Upload coverage to artifacts + - name: Upload to Codecov # Even if tox fails, upload coverage if: ${{ (success() || failure()) && contains(matrix.coverage, 'codecov') && matrix.pytest == 'true' }} - uses: actions/upload-artifact@v4 - with: - name: coverage_${{ matrix.toxenv }} - path: coverage.xml - if-no-files-found: error - - upload-codecov: - needs: [tox] - permissions: - contents: none - runs-on: ubuntu-latest - name: Upload Coverage - steps: - - - name: Download coverage artifacts - uses: actions/download-artifact@v4 - with: - path: coverage - pattern: coverage_* - merge-multiple: false - - - name: Display structure of downloaded files - run: ls -R - - - name: Upload report to Codecov - if: ${{ hashFiles('coverage/') != '' }} uses: codecov/codecov-action@v4 with: token: ${{ secrets.CODECOV_TOKEN }} - directory: coverage - fail_ci_if_error: true - verbose: true