Skip to content

Commit 8404caa

Browse files
author
Alan Christie
committed
feat: Use of coverage
1 parent 247a885 commit 8404caa

File tree

4 files changed

+85
-3
lines changed

4 files changed

+85
-3
lines changed

.github/workflows/build.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ jobs:
5151
- name: Test
5252
run: |
5353
poetry run pre-commit run --all-files
54-
poetry run pytest
54+
poetry run coverage run -m pytest
55+
poetry run coverage report
5556
- name: Build
5657
run: |
5758
poetry build

README.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ _clean_ project::
5151

5252
And then run the tests::
5353

54-
pytest
54+
coverage run -m pytest
55+
coverage report
5556

5657
.. _Poetry: https://python-poetry.org
5758
.. _pre-commit: https://pre-commit.com

poetry.lock

Lines changed: 75 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,15 @@ jsonschema = "^4.21.1"
1717
pyyaml = ">= 5.3.1, < 7.0"
1818

1919
[tool.poetry.group.dev.dependencies]
20+
coverage = "^7.6.2"
2021
pre-commit = "^3.7.0"
2122
pytest = "*"
2223

2324
[build-system]
2425
requires = ["poetry-core"]
2526
build-backend = "poetry.core.masonry.api"
27+
28+
[tool.coverage.run]
29+
omit = [
30+
"tests/*",
31+
]

0 commit comments

Comments
 (0)