Skip to content

Commit f1b8c7b

Browse files
authored
Merge pull request #892 from fractal-analytics-platform/fix-coverage
Fix coverage config so that `.venv` files are not listed
2 parents 6d77bb9 + 3942b91 commit f1b8c7b

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

.github/workflows/ci_poetry.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ jobs:
109109
- name: Test tasks with pytest
110110
env:
111111
COVERAGE_FILE: coverage-data-tasks-${{ matrix.python-version }}
112-
run: poetry run coverage run -m pytest tests/dev tests/tasks -s --log-cli-level info
112+
run: poetry run coverage run -m pytest tests/dev tests/tasks
113113

114114
- name: Upload coverage data
115115
uses: actions/upload-artifact@v4
@@ -131,7 +131,7 @@ jobs:
131131
python-version: "3.10"
132132

133133
- name: Install dependencies
134-
run: poetry install --with dev -E fractal-tasks
134+
run: poetry install --with dev
135135

136136
- name: Download data
137137
uses: actions/download-artifact@v4

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
**Note**: Numbers like (\#123) point to closed Pull Requests on the fractal-tasks-core repository.
22

3+
34
# 1.4.1
45

56
* Tasks:
67
* Remove overlap checking for output ROIs in Cellpose task to address performance issues (\#889).
8+
* Testing:
9+
* Fix issues with coverage report listing `.venv` Python modules for other dependencies (\#892).
710

811
# 1.4.0
912

pyproject.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,10 @@ branch = true
101101
parallel = true
102102
relative_files = true
103103
source = ["fractal_tasks_core"]
104-
omit = ["tests/*", "examples/*", "fractal_tasks_core/dev/*"]
104+
omit = ["tests/*", "examples/*", "fractal_tasks_core/dev/*", "*/.venv/*"]
105+
106+
[tool.coverage.report]
107+
omit = ["tests/*", "examples/*", "fractal_tasks_core/dev/*", "*/.venv/*"]
105108

106109
[tool.bumpver]
107110
current_version = "1.4.0"

0 commit comments

Comments
 (0)