Skip to content

Commit 1abea94

Browse files
committed
Add test coverage report to metrics
Change-type: patch
1 parent d9e0fa8 commit 1abea94

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

.github/actions/test/action.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,5 @@ runs:
3535
export TEST_ENV_USER_ID=${{ fromJSON(inputs.secrets).TEST_ENV_USER_ID }}
3636
export TEST_ENV_PASSWORD=${{ fromJSON(inputs.secrets).TEST_ENV_PASSWORD }}
3737
38-
poetry run python -m unittest discover tests -v
38+
poetry run python -m coverage run -m unittest discover tests -v
39+
poetry run coverage report --omit="*/test*"

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ black = {version = "*", python = ">=3.9.0"}
2525
pydocstyle = "*"
2626
flake8 = "*"
2727
pytest= "*"
28+
coverage = "^7.6.12"
2829

2930
[tool.pytest.ini_options]
3031
# Tests are run via the custom action in .github/actions/test/action.yml

0 commit comments

Comments
 (0)