Closed bernhardkaindl closed 10 months ago
https://github.com/marketplace/actions/pytest-coverage-comment
Tests | Skipped | Failures | Errors | Time |
---|---|---|---|---|
10 | 0 :zzz: | 0 :x: | 0 :fire: | 0.737s :stopwatch: |
Once merged to your default branch, Codecov will compare your coverage reports and display the results in this comment.
Thanks for integrating Codecov - We've got you covered :open_umbrella:
Collect, check and report code coverage from Python3 unit test runs:
Add
.coveragerc
and mark not covered branchesCollect and check minium and diff code coverage in pre-commit
For GitHub CI:
Add the Pytest Coverage Comment action, it shows:
Number of Python3 pytest tests executed, skipped, failures, errors and duration
When the title above the table is expanded:
Add coverage upload to https://codecov.io, which once merged:
Provide a link to Codecov code coverage analysis, with the changes to the coverage
The Codecov comment will report if all changes lines are not covered by the unit test.
Sample of how such Codecov comment will look like:
All modified and coverable lines are covered by tests ✅
Comparison is base (1fe372c) 50.63% compared to head (b85dc26) 51.29%.