Skip to content

Commit

Permalink
Use coverage run (#244)
Browse files Browse the repository at this point in the history
  • Loading branch information
flying-sheep authored Nov 28, 2023
1 parent cb6e08d commit 9789657
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion {{cookiecutter.project_name}}/.github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ jobs:
PLATFORM: ${{ matrix.os }}
DISPLAY: :42
run: |
pytest -v --cov --color=yes
coverage run -m pytest -v --color=yes
- name: Report coverage
run: |
coverage report
- name: Upload coverage
uses: codecov/codecov-action@v3
2 changes: 1 addition & 1 deletion {{cookiecutter.project_name}}/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ doc = [
]
test = [
"pytest",
"pytest-cov",
"coverage",
]

{% if cookiecutter.project_name.lower().replace('-', '_') != cookiecutter.package_name -%}
Expand Down

0 comments on commit 9789657

Please sign in to comment.