Skip to content

Repository files navigation

Python Cov: Python Coverage Reporter GitHub Action

🐍 parse and publish coverage xml to a PR, enforce coverage rate on new & modified files

Usage

Create a new workflow .yml file in the .github/workflows/ directory.

You can create a coverage report using $ pytest --cov-report xml:path/to/coverage.xml

Minimal Configuration

name: 'coverage'on:
pull_request:
branches:
- master
- mainjobs:
coverage:
runs-on: ubuntu-lateststeps:
- name: Python Cov uses: orgoro/coverage/vwith:
coverageFile: path/to/coverage.xmltoken: ${{ secrets.GITHUB_TOKEN }}

PR Message

message

Inputs

InputOptionalDescriptionExample
coverageFilepath to python .xml coverage report./path/to/coverage.xml
tokenyour github token🤫
thresholdAllthe minimal average line coverage0.8
thresholdNewthe minimal average new files line coverage0.9
thresholdModifiedthe minimal average modified files line coverage0.0

About

GitHub Action for python coverage publish & analysis

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages