Skip to content

Commit

Permalink
coverage action
Browse files Browse the repository at this point in the history
  • Loading branch information
Immi000 committed Sep 24, 2024
1 parent c1dc222 commit 38c11f5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,10 @@ jobs:
- name: Run isort (auto-reformat)
run: isort .

- name: Run pytest
run: pytest
- name: Run pytest and generate coverage report
run: pytest --cov-report=term-missing:skip-covered --cov=codes test/ | tee pytest-coverage.txt

- name: Pytest coverage comment
uses: MishaKav/pytest-coverage-comment@main
with:
pytest-coverage-path: ./pytest-coverage.txt
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,5 @@ dist/
*.egg-info/
data.hdf5
.venv
.pytest_cache
.pytest_cache
.coverage

0 comments on commit 38c11f5

Please sign in to comment.