dima-engineer/pytest-reporter
Check pytest coverage and fail if tests failed or file and/or total coverage below threshold.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Activelast commit Mar 8, 2026
- License
- MIT
Pinned Snippet
uses: dima-engineer/pytest-reporter@d9dd275c82244fd2391972fccfac710e7edf1736 # v4.3.0tags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| requirements-file | Path to the requirements file if you use pip. ./requirements.txt by default | no | ./requirements.txt |
| pytest-root-dir | root directory to recursively search for .py files | no | . |
| pytest-tests-dir | directory with pytest tests. if left empty will identify test(s) dir by default | no | ./ |
| cov-omit-list | list of directories and/or files to ignore | no | "" |
| cov-threshold-single | fail if any single file coverage is less than threshold | no | 0 |
| cov-threshold-total | fail if the total coverage is less than threshold | no | 0 |
| async-tests | Add support for async tests | no | false |
| poetry-version | Version of poetry. Latest if not specified. | no | latest |
| uv-version | Version of UV. Latest if not specified. | no | latest |
Outputs
| name | description |
|---|---|
| output-table | pytest-cov markdown output table |
| cov-threshold-single-fail | boolean if any single file coverage less than cov-threshold-single |
| cov-threshold-total-fail | boolean if total coverage less than cov-threshold-total |