Skip to content

Commit 84dca27

Browse files
authored
Fixes Github workflow test script (#28)
Closes #29 `--cov` is what actually invokes the coverage check and we don't need to include abstract methods as testable codepaths.
1 parent 6630da9 commit 84dca27

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/python-checks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
python-version-file: "pyproject.toml"
2626

2727
- name: Run tests
28-
run: uv run pytest tests --cov-fail-under=90
28+
run: uv run pytest --cov=src --cov-fail-under=90
2929

3030
- name: Run mypy type check
3131
run: uv run mypy . --config-file=pyproject.toml

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,6 @@ line-length = 88
4141
skip-magic-trailing-comma = true
4242
quote-style = "single"
4343
docstring-code-format = true
44+
45+
[tool.coverage.report]
46+
exclude_also = ['@(abc\.)?abstractmethod']

0 commit comments

Comments
 (0)