Skip to content

Coveralls Python

Actions
Python coverage reports via coveralls.io
v20201129
Latest
Star (48)

Tags

 (1)

coveralls-python-action

push Coverage Status

GitHub Action for Python Coveralls.io

Screenshot

coveralls-python-action

Usage

First make sure your coverage.py is configured with relative_files = True.

Then assuming you have a make test that runs coverage testing. The following workflow will upload it to coveralls.io.

name: push
on: [push, pull_request]

jobs:
  test:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v2
    - uses: actions/setup-python@v1

    - name: Unit tests
      run: make test

    - name: Coveralls
      uses: AndreMiras/coveralls-python-action@develop
      with:
        parallel: true
        flag-name: Unit Test

  coveralls_finish:
    needs: test
    runs-on: ubuntu-latest
    steps:
    - name: Coveralls Finished
      uses: AndreMiras/coveralls-python-action@develop
      with:
        parallel-finished: true

Configuration

- uses: AndreMiras/coveralls-python-action@develop
  with:
    # The `GITHUB_TOKEN` or `COVERALLS_REPO_TOKEN`.
    # Default: ${{ github.token }}
    github-token: ''
    # Set to `true` if you are using parallel jobs, then use `parallel-finished: true` for the last action.
    # Default: false
    parallel: ''
    # Set to `true` for the last action when using `parallel: true`.
    # Default: false
    parallel-finished: ''
    # A name to identify the current job. This is useful in combination with `parallel: true`.
    # Default: false
    flag-name: ''
    # A sub-directory in which coverage was executed.
    # Default: false
    base-path: ''
    # Set to true to increase logger verbosity.
    # Default: false
    debug: ''

Coveralls Python is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Python coverage reports via coveralls.io
v20201129
Latest

Tags

 (1)

Coveralls Python is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.