ensembleip/Coverage Gate (overall + diff)
Checks overall and PR diff coverage from a Cobertura XML report (coverage.xml). Optionally publishes PR check-runs.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| coverage-xml | Path to Cobertura XML coverage report (e.g. coverage.xml). | no | coverage.xml |
| min-coverage | Minimum required overall coverage percentage (0-100). | yes | — |
| min-diff-coverage | Minimum required coverage percentage for changed Python files (0-100). If empty, diff coverage is skipped. | no | "" |
| changed-files-glob | Glob(s) used to detect changed files (diff coverage). Only used for pull_request events. Can be a single glob or multiple globs (newline-separated). | no | src/*.py src/**/*.py |
| publish-checks | If true, publish results to the PR checks list via the Checks API. | no | true |
| check-name-overall | Name for the overall coverage check-run. | no | coverage (overall) |
| check-name-diff | Name for the diff coverage check-run. | no | coverage (diff) |
| github-token | GitHub token used to publish check-runs. | no | ${{ github.token }} |
Outputs
| name | description |
|---|---|
| coverage | Overall coverage percentage (min of line and branch coverage). |
| line_coverage | Overall line coverage percentage. |
| branch_coverage | Overall branch coverage percentage. |
| diff_coverage | Diff coverage percentage for changed files (if computed). |
| changed_files_count | Count of changed files matched by the glob (PR only). |