Skip to content

Commit

Permalink
add coverage to gh test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
z80dev committed Oct 27, 2023
1 parent eb8d025 commit f13591d
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,15 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pytest
pip install pytest coverage
pip install .
- name: Run pytest
run: pytest
- name: Run pytest with coverage
run: coverage run -m pytest
- name: Report coverage
run: |
coverage report --fail-under=75
- name: Upload coverage report
uses: actions/upload-artifact@v2
with:
name: coverage-report
path: ./htmlcov

0 comments on commit f13591d

Please sign in to comment.