Skip to content

Commit

Permalink
Fix coverage comment
Browse files Browse the repository at this point in the history
  • Loading branch information
samamorgan committed Nov 3, 2023
1 parent e08a09d commit c37ab88
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,15 @@ jobs:
run: poetry install --with test --no-interaction

- name: Run tests
run: poetry run pytest --cov
run: |
poetry run pytest \
--junitxml=pytest.xml \
--cov-report=term-missing:skip-covered \
--cov=app 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
unique-id-for-comment: ${{ matrix.python-version }}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ coverage.xml
*.py,cover
.hypothesis/
.pytest_cache/
pytest-coverage.txt
pytest.xml

# Translations
*.mo
Expand Down

0 comments on commit c37ab88

Please sign in to comment.