Skip to content

Commit

Permalink
Add test coverage report to metrics
Browse files Browse the repository at this point in the history
Change-type: patch
  • Loading branch information
otaviojacobi committed Feb 18, 2025
1 parent d9e0fa8 commit 1abea94
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/actions/test/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,5 @@ runs:
export TEST_ENV_USER_ID=${{ fromJSON(inputs.secrets).TEST_ENV_USER_ID }}
export TEST_ENV_PASSWORD=${{ fromJSON(inputs.secrets).TEST_ENV_PASSWORD }}
poetry run python -m unittest discover tests -v
poetry run python -m coverage run -m unittest discover tests -v
poetry run coverage report --omit="*/test*"
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ black = {version = "*", python = ">=3.9.0"}
pydocstyle = "*"
flake8 = "*"
pytest= "*"
coverage = "^7.6.12"

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

0 comments on commit 1abea94

Please sign in to comment.