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
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".
Required The GitHub Token. Default "${{ github.token }}".
Required The GitHub Token. Default ".".
Required The Code Coverage. Default "."
The Test coverage
- name: oryks code coverage action
id: selftest
uses: twyle/oryks-code-coverage@v0.17.1
with:
codedirectory: src/
testdirectory: tests/
github_token: ${{ github.token }}
oryks_token: ${{ secrets.ORYKS_TOKEN }}
- name: action output
run: |
echo "${{ steps.selftest.outputs.testcoverage }}
