-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Labels
part:ciAffects the GitHub workflow and other parts for running CIAffects the GitHub workflow and other parts for running CIpart:testsAffects the unit, integration and performance (benchmarks) testsAffects the unit, integration and performance (benchmarks) teststype:enhancementNew feature or enhancement visitble to usersNew feature or enhancement visitble to users
Milestone
Description
Coverage reporting can be added via pytest-cov and then visualized via codecov.
In the pyproject.toml
file we should add to the dependencies:
dev-pytest = [
"pytest == 7.3.1",
"pytest-cov == 4.0.0",
"...",
]
Then basically just run pytest --cov python.package.to.test
in the CI and use the codecov/codecov-action
to upload the reports.
- Example project: https://github.com/codecov/example-python
- Example config: https://github.com/codecov/example-python/blob/main/codecov.yml
- GitHub workflow example: https://github.com/codecov/example-python/blob/main/.github/workflows/ci.yml
Metadata
Metadata
Assignees
Labels
part:ciAffects the GitHub workflow and other parts for running CIAffects the GitHub workflow and other parts for running CIpart:testsAffects the unit, integration and performance (benchmarks) testsAffects the unit, integration and performance (benchmarks) teststype:enhancementNew feature or enhancement visitble to usersNew feature or enhancement visitble to users