Skip to content

Commit b7810da

Browse files
committed
Merge branch 'topic/default/coverage' into 'branch/default'
Improve and investigate coverage See merge request fluiddyn/fluidimage!127
2 parents fe156fc + 56336ee commit b7810da

File tree

6 files changed

+10
-2
lines changed

6 files changed

+10
-2
lines changed

.github/workflows/ci-linux.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ jobs:
3333
3434
- name: Test with nox
3535
run: |
36+
export TRANSONIC_NO_REPLACE=1
3637
nox -s "test(cov=True, with_opencv=True)"
3738
3839
- name: Upload coverage to codecov

MANIFEST.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ prune .github
88
prune try
99
prune image_samples
1010
prune requirements
11-
prune fluidimage/calcul/plot_evaluate_subpix
11+
prune dev
1212
prune **/__pythran__

Makefile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,10 @@ format:
2828

2929
test:
3030
OMP_NUM_THREADS=1 pdm run pytest src
31+
32+
cov:
33+
# much slower with TRANSONIC_NO_REPLACE but more accurate
34+
TRANSONIC_NO_REPLACE=1 OMP_NUM_THREADS=1 pytest --pyargs fluidimage --cov --no-cov-on-fail
35+
36+
cov-html:
37+
coverage html

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@ omit = [
157157
"**/__pythran__/*.py",
158158
"**/__python__/*.py",
159159
"**/__numba__/*.py",
160+
"src/fluidimage/postproc/postproc.py",
160161
]
161162
[tool.coverage.report]
162163
show_missing = true

src/fluidimage/calcul/meson.build

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11

22
python_sources = [
33
'__init__.py',
4-
'_evaluate_subpix.py',
54
'correl.py',
65
'correl_pycuda.py',
76
'errors.py',

0 commit comments

Comments
 (0)