Skip to content

Commit

Permalink
Try out Codecov
Browse files Browse the repository at this point in the history
Signed-off-by: Håkon Wiik Ånes <[email protected]>
  • Loading branch information
hakonanes committed Jan 1, 2025
1 parent 5973b7f commit 514df89
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 15 deletions.
20 changes: 5 additions & 15 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,23 +113,13 @@ jobs:
- name: Run tests on Windows or macOS
if: ${{ matrix.os != 'ubuntu-latest' }}
run: |
pytest ${{ env.PYTEST_ARGS }}
pytest ${{ env.PYTEST_ARGS }} --cov-branch --cov-report=xml
- name: Generate line coverage
run: |
coverage report --show-missing
- name: Upload coverage to Coveralls
if: ${{ matrix.os == 'ubuntu-latest' }}
uses: AndreMiras/coveralls-python-action@develop
with:
parallel: true

coveralls-finish:
needs: tests
runs-on: ubuntu-latest
steps:
- name: Coveralls finished
uses: AndreMiras/coveralls-python-action@develop
with:
parallel-finished: true
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
1 change: 1 addition & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,5 @@ repos:
# https://pre-commit.ci/#configuration
ci:
autofix_prs: false
# TODO: Remove skip once (nearly) all files are formatted with the license template
skip: [licenseheaders]

0 comments on commit 514df89

Please sign in to comment.