Skip to content

Commit

Permalink
Do coverage upload in one workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
pvandyken committed Jul 13, 2024
1 parent 2ad9526 commit 76a8fbf
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 22 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
22 changes: 0 additions & 22 deletions .github/workflows/upload_coverage.yml

This file was deleted.

0 comments on commit 76a8fbf

Please sign in to comment.