Skip to content

Instantly share code, notes, and snippets.

@twyle
Created June 13, 2022 08:41
Show Gist options
  • Save twyle/069e65775b0bcb8e94e6066087f9a675 to your computer and use it in GitHub Desktop.
Save twyle/069e65775b0bcb8e94e6066087f9a675 to your computer and use it in GitHub Desktop.
# action.yml
name: "Pytest Coverage Action"
description: "Use Pytest to show test coverage."
author: "Lyle Okoth"
inputs:
codedirectory:
description: "The directory containing the source code."
default: "The project root i.e '.'"
testdirectory:
description: "The directory containing the tests."
default: "tests\\"
pycovconfigfile:
description: "The pycov configuration file"
default: ".coveragerc"
pytestconfigfile:
description: "The pytest configuration file."
default: "setup.cfg"
github_token:
description: "The GitHub Token."
default: ""
outputs:
testcoverage:
description: "Whether or not the action was successful."
runs:
using: "docker"
image: "Dockerfile"
branding:
icon: 'award'
color: 'green'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment