Test
poetry | test ¶
Python project location (path to the
pyproject.tomlfolder).
Executes a Python project's test suite via pytest
and then uploads coverage reports if the
workflow was triggered by a PR.
Important
Assumes the following Project folder structure:
Inputs: ¤
| Name | Description | Default |
|---|---|---|
working-directory
¤
|
Python project location (path to the |
|
low-pct-coverage-threshold
¤
|
Minimum test coverage requirement for non-failing builds. |
60
|
high-pct-coverage-threshold
¤
|
Good test coverage threshold. |
90
|
html-results-path
¤
|
Path to the HTML test results file (relative to |
test_results.html
|
html-coverage-path
¤
|
Path to the HTML coverage report folder (relative to |
reports/html
|
codecov-token
¤
|
Codecov token (OPTIONAL). Leave unset to disable Codecov scanning and uploads. Set to |
|
pytest-args
¤
|
Additional args for PyTest. |
|