Skip to content

Commit

Permalink
Switch from pytest-cov to coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
physikerwelt committed Feb 7, 2024
1 parent c053cf6 commit a46d138
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,5 @@ jobs:
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Test with pytest
run: |
pytest
- name: Build coverage file
run: |
pytest --cache-clear --cov=app test/ > pytest-coverage.txt
- name: Comment coverage
uses: coroo/[email protected]
coverage run -m pytest
coverage report -m
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ dependencies = [
[project.optional-dependencies]
test = [
"black",
"coverage",
"flake8",
"isort",
"pytest",
"pytest-cov",
"radon",
"flake8_polyfill",
"coverage",
Expand Down

1 comment on commit a46d138

@Mazztok45
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did not know this package, but it seems it will be helpful for the project. Thanks.

Please sign in to comment.