Skip to content

Commit

Permalink
coverage report fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
jamadden committed Nov 6, 2024
1 parent a187b5b commit 6571e17
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
20 changes: 18 additions & 2 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -1,7 +1,23 @@
[run]
source = src
source_pkgs = nti.i18n
relative_files = true


[report]
# Coverage is run on Linux under cPython 2 and 3,
# exclude branches that are windows, pypy
# specific
exclude_lines =
pragma: no cover
if __name__ == '__main__':
def __repr__
raise AssertionError
raise NotImplementedError
if __name__ == .__main__.:
if PYPY:
if sys.platform == 'win32':
if mswindows:
if is_windows:

# Local Variables:
# mode: conf
# End:
2 changes: 2 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ jobs:
run: |
coverage run -m zope.testrunner --test-path=src --auto-color --auto-progress
coverage run -a -m sphinx -b doctest -d docs/_build/doctrees docs docs/_build/doctests
coverage combine || true
coverage report -i || true
- name: Lint
if: matrix.python-version == '3.12'
run: |
Expand Down

0 comments on commit 6571e17

Please sign in to comment.