File tree Expand file tree Collapse file tree 3 files changed +20
-5
lines changed Expand file tree Collapse file tree 3 files changed +20
-5
lines changed Original file line number Diff line number Diff line change 6060 hatch env run -e test.py${{ matrix.python-version }}-${{ matrix.numpy-version }}-${{ matrix.dependency-set }} list-env
6161 - name : Run Tests
6262 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)
6469
6570 test-upstream-and-min-deps :
6671 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"
103103[tool .coverage .report ]
104104exclude_lines = [
105105 " pragma: no cover" ,
106+ " if TYPE_CHECKING:" ,
106107 " pragma: ${PY_MAJOR_VERSION} no cover" ,
107108 ' .*\.\.\.' # Ignore "..." lines
108109]
109110
110111[tool .coverage .run ]
111112omit = [
112- " src/zarr/meta_v1.py" ,
113113 " bench/compress_normal.py" ,
114114]
115115
@@ -140,8 +140,8 @@ numpy = ["1.25", "2.1"]
140140features = [" gpu" ]
141141
142142[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 "
145145run = " run-coverage --no-cov"
146146run-verbose = " run-coverage --verbose"
147147run-mypy = " mypy src"
@@ -170,7 +170,7 @@ numpy = ["1.25", "2.1"]
170170version = [" minimal" ]
171171
172172[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 "
174174run = " run-coverage --no-cov"
175175run-verbose = " run-coverage --verbose"
176176run-mypy = " mypy src"
You can’t perform that action at this time.
0 commit comments