Skip to content

Commit

Permalink
[GA] Add coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
iory committed Jan 2, 2024
1 parent 470f066 commit e5c899a
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,15 @@ jobs:
- name: Install Pytest
run: |
python -m pip install --upgrade pip setuptools wheel
pip install pytest hacking
pip install pytest hacking pytest-cov
- name: Install python package
run: pip install .
- name: Run Pytest
run: pytest -v tests
run: |
set -o pipefail
pytest --junitxml=pytest.xml --cov-report=term-missing:skip-covered --cov=. tests/ | tee pytest-coverage.txt
- name: Pytest coverage comment
uses: MishaKav/pytest-coverage-comment@main
with:
pytest-coverage-path: ./pytest-coverage.txt
junitxml-path: ./pytest.xml

0 comments on commit e5c899a

Please sign in to comment.