actions-marketplace-validations/Python Coverage Comment

Publish diff coverage report as PR comment, and create a coverage badge to display on the readme.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
GITHUB_TOKENA GitHub token to write comments and write the badge & coverage data to the repository. Set to `$ {{ github.token }}` (without the space between `$` and `{`). yes
GITHUB_PR_RUN_IDOnly useful on the "workflow_run" part of the workflow. Set to `$ {{ github.event.workflow_run.id }}` (without the space between `$` and `{`). no
COMMENT_TEMPLATE[Advanced] Specify a different template for the comments that will be written on the PR. See the Action README documentation for how to use this properly. no
COVERAGE_DATA_BRANCHName of the branch in which coverage data will be stored on the repository. Default is 'python-coverage-comment-action-data'. Please make sure that this branch is not protected. nopython-coverage-comment-action-data
COMMENT_ARTIFACT_NAMEName of the artifact in which the body of the comment to post on the PR is stored. nopython-coverage-comment-action
COMMENT_FILENAMEName of the file in which the body of the comment to post on the PR is stored. nopython-coverage-comment-action.txt
MINIMUM_GREENIf the coverage percentage is above or equal to this value, the badge will be green. no100
MINIMUM_ORANGEIf the coverage percentage is not green and above or equal to this value, the badge will be orange. Otherwise it will be red. no70
MERGE_COVERAGE_FILESIf true, will run `coverage combine` before reading the `.coverage` file. false
ANNOTATE_MISSING_LINESIf true, will create an annotation on every line with missing coverage on a pull request. false
ANNOTATION_TYPEOnly needed if ANNOTATE_MISSING_LINES is set to true. This parameter allows you to choose between notice, warning and error as annotation type. For more information look here: https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#setting-a-notice-message warning
VERBOSEIf true, produces more output. Useful for debugging. false
namedescription
COMMENT_FILE_WRITTENIf "true", a comment file was written to COMMENT_FILENAME. If "false", no comment file was written (because the comment was already posted).