Skip to content

Commit

Permalink
Merge pull request #206 from astrofrog/revert-codecov-changes
Browse files Browse the repository at this point in the history
Revert splitting out of coverage step
  • Loading branch information
astrofrog authored Jun 5, 2024
2 parents 7d299a4 + 5aa697d commit c4b5480
Showing 1 changed file with 1 addition and 30 deletions.
31 changes: 1 addition & 30 deletions .github/workflows/tox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit c4b5480

Please sign in to comment.