Skip to content

Commit

Permalink
👷🏻 ci: test pipeline when creating the coverage report
Browse files Browse the repository at this point in the history
  • Loading branch information
adriamontoto committed Aug 8, 2024
1 parent 4189938 commit 7257747
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.
13 changes: 13 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,19 @@ jobs:
ls -la coverage
coverage combine coverage/.coverage_*
- name: Normalize paths
run: |
python -c "
import os
import pathlib
for root, dirs, files in os.walk('coverage'):
for file in files:
if file.endswith('.py'):
path = pathlib.Path(root) / file
normalized_path = path.resolve()
print(f'Normalized path: {normalized_path}')
"
- name: 📊 Generate coverage report
run: |
coverage report
Expand Down
18 changes: 17 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,28 @@ xfail_strict = true


[tool.coverage.run]
parallel = true
source = ['developing_tools']
parallel = true
branch = true
relative_files = true

[tool.coverage.report]
show_missing = true
skip_covered = true
precision = 2
exclude_lines = [
'pragma: no cover',
'raise NotImplementedError',
'if TYPE_CHECKING:',
'if typing.TYPE_CHECKING:',
'@overload',
'@typing.overload',
'typing.assert_never',
'assert_never',
]

[tool.coverage.paths]
source = ['developing_tools']


[tool.ruff]
Expand Down

0 comments on commit 7257747

Please sign in to comment.