Skip to content

Commit

Permalink
chore: add running of coverage on pytest
Browse files Browse the repository at this point in the history
Run coverage automatically when running pytest
  • Loading branch information
cardoe committed Aug 6, 2024
1 parent 435ed5d commit 83b9a17
Show file tree
Hide file tree
Showing 3 changed files with 115 additions and 11 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,4 @@ venv/
/python/*/build/
/python/*/dist/
__pycache__
.coverage
122 changes: 112 additions & 10 deletions python/understack-workflows/poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion python/understack-workflows/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ optional = true
[tool.poetry.group.test.dependencies]
pytest = "^7"
pytest-github-actions-annotate-failures = "*"
pytest-cov = "^5.0.0"

[tool.poetry.scripts]
synchronize-interfaces = "understack_workflows.main.synchronize_interfaces:main"
Expand All @@ -51,7 +52,7 @@ exclude = ["tests*"]

[tool.pytest.ini_options]
minversion = "6.0"
addopts = "-ra -q"
addopts = "-ra --cov=understack_workflows"
testpaths = [
"tests",
]
Expand Down

0 comments on commit 83b9a17

Please sign in to comment.