This GitHub Action shows Code Coverage for a given project.
This GitHub Action shows code Coverage for a given python project using Pytest Coverage. To use this action, your project must have tests written using pytest and stored in a test folder. You can read about how it was developed over at How To Create a GitHub Action that Shows Code Coverage using Pytest
This action shows code coverage using pytest coverage. To read about how it was developed, check out How To Create a GitHub Action that Shows Code Coverage using Pytest.
Required The directory containing the source code. Default "."
.
Required The directory containing the tests. Default "tests\"
.
Optional The pycov configuration file Default ".coveragerc"
.
Optional The pytest configuration file. Default "setup.cfg"
.
The Test coverage
- name: oryks code coverage action
id: selftest
uses: twyle/[email protected]
with:
codedirectory: src/
testdirectory: tests/
github_token: ${{ github.token }}
- name: action output
run: |
echo "${{ steps.selftest.outputs.testcoverage }}