ci: pytest-cov migrated to coverage
CI for csaxs_bec / test (pull_request) Successful in 1m55s
Read the Docs Deploy Trigger / trigger-rtd-webhook (push) Successful in 2s
CI for csaxs_bec / test (push) Successful in 2m28s

This commit was merged in pull request #293.
This commit is contained in:
2026-08-12 17:34:33 +02:00
parent 13ab2d5f42
commit 34e7dff17d
2 changed files with 17 additions and 1 deletions
+6 -1
View File
@@ -91,4 +91,9 @@ jobs:
- name: Run Pytest with Coverage
id: coverage
run: pytest --random-order --cov=./csaxs_bec --cov-config=./csaxs_bec/pyproject.toml --cov-branch --cov-report=xml --no-cov-on-fail ./csaxs_bec/tests/ || test $? -eq 5
shell: bash
run: |
cd ./csaxs_bec
coverage run --branch --source=./csaxs_bec -m pytest --random-order ./tests/ || test $? -eq 5
coverage report
coverage xml -o coverage.xml
+11
View File
@@ -87,6 +87,17 @@ plugin_widgets_update = "csaxs_bec.bec_widgets.auto_updates"
[project.entry-points."bec.widgets.user_widgets"]
plugin_widgets = "csaxs_bec.bec_widgets.widgets"
[tool.coverage.report]
skip_empty = true # exclude empty *files*, e.g. __init__.py, from the report
exclude_lines = [
"pragma: no cover",
"if TYPE_CHECKING:",
"return NotImplemented",
"raise NotImplementedError",
"\\.\\.\\.",
'if __name__ == "__main__":',
]
[tool.hatch.build.targets.wheel]
include = ["*"]