Skip to content

Commit

Permalink
Updated testing and coverage reporting config
Browse files Browse the repository at this point in the history
  • Loading branch information
agronholm committed Jun 11, 2023
1 parent 2266a25 commit 82bad08
Showing 1 changed file with 10 additions and 12 deletions.
22 changes: 10 additions & 12 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,23 +34,21 @@ jobs:
- name: Install dependencies
run: pip install .[test] coveralls
- name: Test with pytest
run: coverage run -m pytest
run: |
coverage run -m pytest
coverage xml
- name: Upload Coverage
run: coveralls --service=github
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COVERALLS_FLAG_NAME: ${{ matrix.test-name }}
COVERALLS_PARALLEL: true
uses: coverallsapp/github-action@v2
with:
parallel: true
file: coverage.xml

coveralls:
name: Finish Coveralls
needs: test
runs-on: ubuntu-latest
container: python:3-slim
steps:
- name: Finished
run: |
pip install coveralls
coveralls --service=github --finish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: coverallsapp/github-action@v2
with:
parallel-finished: true

0 comments on commit 82bad08

Please sign in to comment.