Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
percent

GitHub Action

Coveralls Python

v20200411

Coveralls Python

percent

Coveralls Python

Python coverage reports via coveralls.io

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Coveralls Python

uses: AndreMiras/coveralls-python-action@v20200411

Learn more about this action in AndreMiras/coveralls-python-action

Choose a version

coveralls-python-action

push

GitHub Action for Python Coveralls.io

Usage

You simply need to set one of the following two environment variables:

  • GITHUB_TOKEN
  • COVERALLS_REPO_TOKEN

Example usage

Assuming you have a make test that runs coverage testing. The following 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
      env:
        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}