Skip to content

Instantly share code, notes, and snippets.

@twyle
Last active May 29, 2022 07:59
Show Gist options
  • Save twyle/ff9440d9dc5779d82a05b7a25f65b9a0 to your computer and use it in GitHub Desktop.
Save twyle/ff9440d9dc5779d82a05b7a25f65b9a0 to your computer and use it in GitHub Desktop.

oryks-code-coverage

This action shows code coverage using pycov.

Inputs

codedirectory

Required The directory containing the source code. Default ".".

testdirectory

Required The directory containing the tests. Default "tests\".

pycovconfigfile

Optional The pycov configuration file Default ".coveragerc".

pytestconfigfile

Optional The pytest configuration file. Default "setup.cfg".

Outputs

testcoverage

The Test coverage

Example usage

- name: oryks code coverage action
  id: selftest
  uses: twyle/[email protected]
  with:
    codedirectory: src/
    testdirectory: tests/

- name: action output
  run: |
    echo "${{ steps.selftest.outputs.testcoverage }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment