Skip to content

Commit d46305f

Browse files
committed
Upload coverage from zarr3 tests
1 parent 25bf6bf commit d46305f

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

.github/workflows/ci.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,4 +100,10 @@ jobs:
100100

101101
- name: Run tests with Zarr ${{ matrix.zarr-version }}
102102
shell: "bash -l {0}"
103-
run: pixi run test-zarr-${{ matrix.zarr-version }}
103+
run: pixi run test-zarr-${{ matrix.zarr-version }}
104+
105+
- uses: codecov/codecov-action@v5
106+
with:
107+
fail_ci_if_error: true
108+
token: ${{ secrets.CODECOV_TOKEN }}
109+
verbose: true

pyproject.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -284,9 +284,9 @@ test-google-crc32c = ["test", "test-google-crc32c"]
284284
ls-deps-312 = "uv run --group test-zarr-312 uv pip freeze"
285285
ls-deps-313 = "uv run --group test-zarr-313 uv pip freeze"
286286
ls-deps-main = "uv run --group test-zarr-main uv pip freeze"
287-
test-zarr-312 = "uv run --group test-zarr-312 pytest numcodecs/tests/test_zarr3.py numcodecs/tests/test_zarr3_import.py"
288-
test-zarr-313 = "uv run --group test-zarr-313 pytest numcodecs/tests/test_zarr3.py numcodecs/tests/test_zarr3_import.py"
289-
test-zarr-main = "uv run --group test-zarr-main pytest numcodecs/tests/test_zarr3.py numcodecs/tests/test_zarr3_import.py"
287+
test-zarr-312 = "uv run --group test-zarr-312 pytest --cov=numcodecs --cov-report=xml --cov-report=term numcodecs/tests/test_zarr3.py numcodecs/tests/test_zarr3_import.py"
288+
test-zarr-313 = "uv run --group test-zarr-313 pytest --cov=numcodecs --cov-report=xml --cov-report=term numcodecs/tests/test_zarr3.py numcodecs/tests/test_zarr3_import.py"
289+
test-zarr-main = "uv run --group test-zarr-main pytest --cov=numcodecs --cov-report=xml --cov-report=term numcodecs/tests/test_zarr3.py numcodecs/tests/test_zarr3_import.py"
290290

291291
[tool.pixi.feature.test.tasks]
292-
run-tests = "pytest -v"
292+
run-tests = "pytest -v"

0 commit comments

Comments
 (0)