/coverage-commentor

GitHub Action that reports the test coverage of a Python Project

Primary LanguageDockerfile

Introduction

The coverage-commentor is a GitHub Action that is supposed to run when you push changes to a Pull Request. GitHub Action

Inputs

requirements

Required The requirements such as the testing framework that are needed to run the test suite.

By default, it installs all the latest version of pytest, unittest and nosetest.

It is highly recommended that you pass a specific framework along with the correct version.

testRunCommand

Required The command that you need to execute to start the test suite.

E.g. pytest arg1 arg2, unittest tests.myTests -v

Example Usage

on: pull_request

jobs:
    coverage_commentor_job:
        runs-on: ubuntu-latest. # Docker based GitHub Actions only run on Linux OSs.
        name: Coverage Commentor
        uses: actions/coverage-commentor@v1 # Replace with correct version.
        with:
            requirements: "pytest"
            testRunCommand: "pytest"