Skip to content

Commit

Permalink
coverage: add version specific exclude
Browse files Browse the repository at this point in the history
as it looks like coverage is buggy esp. on py 3.9

Signed-off-by: Konrad Weihmann <[email protected]>
  • Loading branch information
priv-kweihmann committed Dec 22, 2024
1 parent 1239b7b commit 177a5e8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
[report]
exclude_lines =
pragma: no cover
pragma: nocover_${PY_VERSION}
@abstract
raise NotImplementedError
[run]
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/pythonpackage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ jobs:
run: flake8
- name: test (pytest)
run: pytest
env:
PY_VERSION: ${{ matrix.python-version }}
- name: build
run: python3 -m build --sdist --wheel
- name: install
Expand Down

0 comments on commit 177a5e8

Please sign in to comment.