File tree 3 files changed +20
-5
lines changed
3 files changed +20
-5
lines changed Original file line number Diff line number Diff line change 60
60
hatch env run -e test.py${{ matrix.python-version }}-${{ matrix.numpy-version }}-${{ matrix.dependency-set }} list-env
61
61
- name : Run Tests
62
62
run : |
63
- hatch env run --env test.py${{ matrix.python-version }}-${{ matrix.numpy-version }}-${{ matrix.dependency-set }} run
63
+ hatch env run --env test.py${{ matrix.python-version }}-${{ matrix.numpy-version }}-${{ matrix.dependency-set }} run-coverage
64
+ - name : Upload coverage
65
+ uses : codecov/codecov-action@v5
66
+ with :
67
+ token : ${{ secrets.CODECOV_TOKEN }}
68
+ verbose : true # optional (default = false)
64
69
65
70
test-upstream-and-min-deps :
66
71
name : py=${{ matrix.python-version }}-${{ matrix.dependency-set }}
Original file line number Diff line number Diff line change
1
+ coverage :
2
+ status :
3
+ patch :
4
+ default :
5
+ target : auto
6
+ project :
7
+ default :
8
+ target : auto
9
+ threshold : 0.1
10
+ comment : false
Original file line number Diff line number Diff line change @@ -103,13 +103,13 @@ Homepage = "https://github.com/zarr-developers/zarr-python"
103
103
[tool .coverage .report ]
104
104
exclude_lines = [
105
105
" pragma: no cover" ,
106
+ " if TYPE_CHECKING:" ,
106
107
" pragma: ${PY_MAJOR_VERSION} no cover" ,
107
108
' .*\.\.\.' # Ignore "..." lines
108
109
]
109
110
110
111
[tool .coverage .run ]
111
112
omit = [
112
- " src/zarr/meta_v1.py" ,
113
113
" bench/compress_normal.py" ,
114
114
]
115
115
@@ -140,8 +140,8 @@ numpy = ["1.25", "2.1"]
140
140
features = [" gpu" ]
141
141
142
142
[tool .hatch .envs .test .scripts ]
143
- run-coverage = " pytest --cov-config=pyproject.toml --cov=pkg --cov=src"
144
- run-coverage-gpu = " pip install cupy-cuda12x && pytest -m gpu --cov-config=pyproject.toml --cov=pkg --cov=src"
143
+ run-coverage = " pytest --cov-config=pyproject.toml --cov=pkg --cov-report xml --cov =src --junitxml=junit.xml -o junit_family=legacy "
144
+ run-coverage-gpu = " pip install cupy-cuda12x && pytest -m gpu --cov-config=pyproject.toml --cov=pkg --cov-report xml --cov =src --junitxml=junit.xml -o junit_family=legacy "
145
145
run = " run-coverage --no-cov"
146
146
run-verbose = " run-coverage --verbose"
147
147
run-mypy = " mypy src"
@@ -170,7 +170,7 @@ numpy = ["1.25", "2.1"]
170
170
version = [" minimal" ]
171
171
172
172
[tool .hatch .envs .gputest .scripts ]
173
- run-coverage = " pytest -m gpu --cov-config=pyproject.toml --cov=pkg --cov=src"
173
+ run-coverage = " pytest -m gpu --cov-config=pyproject.toml --cov=pkg --cov-report xml --cov =src --junitxml=junit.xml -o junit_family=legacy "
174
174
run = " run-coverage --no-cov"
175
175
run-verbose = " run-coverage --verbose"
176
176
run-mypy = " mypy src"
You can’t perform that action at this time.
0 commit comments