mirror of
https://github.com/bec-project/bec_widgets.git
synced 2025-07-13 11:11:49 +02:00
ci: include lines with >=3 characters in report
This commit is contained in:
4
.github/workflows/pytest.yml
vendored
4
.github/workflows/pytest.yml
vendored
@ -55,9 +55,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Run Pytest with Coverage
|
- name: Run Pytest with Coverage
|
||||||
id: coverage
|
id: coverage
|
||||||
run: |
|
run: pytest --random-order --cov --cov-config=pyproject.toml --cov-branch --cov-report=xml --no-cov-on-fail tests/unit_tests/
|
||||||
pip install coverage pytest pytest-random-order pytest-cov
|
|
||||||
pytest --random-order --cov --cov-config=pyproject.toml --cov-branch --cov-report=xml --no-cov-on-fail tests/unit_tests/
|
|
||||||
|
|
||||||
- name: Upload coverage to Codecov
|
- name: Upload coverage to Codecov
|
||||||
uses: codecov/codecov-action@v5
|
uses: codecov/codecov-action@v5
|
||||||
|
@ -38,6 +38,7 @@ dev = [
|
|||||||
"pytest-timeout~=2.2",
|
"pytest-timeout~=2.2",
|
||||||
"pytest-xvfb~=3.0",
|
"pytest-xvfb~=3.0",
|
||||||
"pytest~=8.0",
|
"pytest~=8.0",
|
||||||
|
"pytest-cov~=6.1.1",
|
||||||
]
|
]
|
||||||
|
|
||||||
[project.urls]
|
[project.urls]
|
||||||
@ -108,11 +109,11 @@ upload_to_vcs_release = true
|
|||||||
|
|
||||||
[tool.coverage.report]
|
[tool.coverage.report]
|
||||||
skip_empty = true # exclude empty *files*, e.g. __init__.py, from the report
|
skip_empty = true # exclude empty *files*, e.g. __init__.py, from the report
|
||||||
exclude_lines = [
|
exclude_also = [ # Exclude lines matching these regexes from the coverage report
|
||||||
"pragma: no cover",
|
"pragma: no cover",
|
||||||
"if TYPE_CHECKING:",
|
"if TYPE_CHECKING:",
|
||||||
"return NotImplemented",
|
"return NotImplemented",
|
||||||
"raise NotImplementedError",
|
"raise NotImplementedError",
|
||||||
"...",
|
"\\.\\.\\.",
|
||||||
'if __name__ == "__main__":',
|
'if __name__ == "__main__":',
|
||||||
]
|
]
|
||||||
|
Reference in New Issue
Block a user