jotafan/pycoverage

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
Stalelast commit Nov 20, 2024
License
MIT

Pinned Snippet

workflow.ymlSHA-pinned
uses: jotafan/pycoverage@4cbb8fff56cf974eabdcd0cf3d690acbc4e1efec # v1.1.1

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-groupsPoetry group names with the dependencies for the tests.nodev,tests
package-extrasPackage extras with the dependencies for the tests, or dev-requirement file if pipnodev,tests
outputOutput path to write the coverage badge.nobadges/coverage.svg
overwriteOverwrite an existing coverage badge.notrue
github_tokenGitHub writing tokenno""
working_branchWorking branchnomain
commit_badgeBoolean to either make a commit on the coverage badge or notnofalse
poetry-versionVersion of poetry. Latest if not specified.no
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