Skip to content

:octocat: Github action to report code coverage for coverage.py, mocha, jest, etc.

Notifications You must be signed in to change notification settings

tj-actions/coverage-reporter

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

Codacy Badge build-test Public workflows that use this action.

coverage-reporter

Display Coverage reports on a Pull Request.

sample

Usage

coverage.py

...
    steps:
      - uses: actions/checkout@v3
      - name: Code coverage-reporter
        uses: tj-actions/[email protected]
        with:
          coverage-command: 'python -m coverage report'

nyc

...
    steps:
      - uses: actions/checkout@v3
      - name: Code coverage-reporter
        uses: tj-actions/[email protected]
        with:
          coverage-command: "nyc --reporter=text mocha --exclude='fixtures' __tests__/*.js"

Inputs

INPUT TYPE REQUIRED DEFAULT DESCRIPTION
coverage-command string true Specify a coverage command to
run the test.
token string true "${{ github.token }}" GITHUB_TOKEN or a Repo scoped
PAT

If you feel generous and want to show some extra appreciation:

Buy me a coffee

About

:octocat: Github action to report code coverage for coverage.py, mocha, jest, etc.

Topics

Resources

Code of conduct

Stars

Watchers

Forks

Packages

No packages published