dima-engineer/pytest-reporter

Check pytest coverage and fail if tests failed or file and/or total coverage below threshold.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Activelast commit Mar 8, 2026
License
MIT

Pinned Snippet

workflow.ymlSHA-pinned
uses: dima-engineer/pytest-reporter@d9dd275c82244fd2391972fccfac710e7edf1736 # v4.3.0

tags can be moved; commit SHAs can't. why a SHA?

namedescriptionrequireddefault
requirements-filePath to the requirements file if you use pip. ./requirements.txt by defaultno./requirements.txt
pytest-root-dirroot directory to recursively search for .py filesno.
pytest-tests-dirdirectory with pytest tests. if left empty will identify test(s) dir by defaultno./
cov-omit-listlist of directories and/or files to ignoreno""
cov-threshold-singlefail if any single file coverage is less than thresholdno0
cov-threshold-totalfail if the total coverage is less than thresholdno0
async-testsAdd support for async testsnofalse
poetry-versionVersion of poetry. Latest if not specified.nolatest
uv-versionVersion of UV. Latest if not specified.nolatest
namedescription
output-tablepytest-cov markdown output table
cov-threshold-single-failboolean if any single file coverage less than cov-threshold-single
cov-threshold-total-failboolean if total coverage less than cov-threshold-total