Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert splitting out of coverage step #206

Merged
merged 1 commit into from
Jun 5, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading