Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix coverage report paths #907

Merged
merged 3 commits into from
Feb 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
[run]
branch = True
concurrency = multiprocessing
data_file = .test_reports/.coverage
relative_files = True
source_pkgs =
data_file = .coverage
source_pkgs =
scilpy
scripts
relative_files = True
omit =
scripts/tests/*.py
scilpy/tests/**/*.py
Expand All @@ -16,6 +16,11 @@ omit =

[report]
skip_empty = True
skip_covered = True

[html]
title = Scilpy Coverage Report
directory = .test_reports/coverage.html

[xml]
output = .test_reports/coverage.xml
1 change: 0 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ jobs:
flags: unittests
name: scilpy-unittests-${{ github.run_id }}
verbose: true
directory: .test_reports/
fail_ci_if_error: true
plugin: pycoverage

Expand Down
7 changes: 3 additions & 4 deletions pytest.ini
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,7 @@ junit_logging = out-err

addopts =
--html=.test_reports/pytest.html
--cov-report=html:.test_reports/coverage.html
--junit-xml=.test_reports/junit.xml
--cov-report=xml:.test_reports/coverage.xml
--cov=scilpy/
--cov=scripts/
--cov
--cov-report html
--cov-report xml