diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 2601ffb2..90dc93d4 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -92,6 +92,22 @@ jobs: --doctest-modules --ignore=docs --ignore=snakebids/project_template --benchmark-disable + - name: save coverage report + uses: actions/upload-artifact@v4 + with: + name: coverage-${{ matrix.python-version }}-${{ matrix.split }} + path: ./coverage.xml + + upload_coverage: + runs-on: ubuntu-latest + needs: [ test ] + steps: + - name: checkout repository + uses: actions/checkout@v4 + - name: download coverage reports + uses: actions/download-artifact@v4 + with: + pattern: coverage-* - name: Upload coverage reports to Codecov uses: codecov/codecov-action@v4 with: diff --git a/.github/workflows/upload_coverage.yml b/.github/workflows/upload_coverage.yml deleted file mode 100644 index ab64499a..00000000 --- a/.github/workflows/upload_coverage.yml +++ /dev/null @@ -1,22 +0,0 @@ -name: Upload coverage - -on: - workflow_run: - workflows: [Test workflow] - types: - - completed - -jobs: - upload_coverage: - runs-on: ubuntu-latest - if: ${{ github.event.workflow_run.conclusion == 'success' }} - steps: - - name: Setup python - uses: actions/setup-python@v5 - - name: Install codecov - run: pip install codecov-cli - - name: Send codecov notifications - run: codecovcli send-notifications -C "$SHA" -t "$CODECOV_TOKEN" - env: - CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} - SHA: ${{ github.event.workflow_run.head_sha }}