Skip to content

Commit da2e0aa

Browse files
maxrjonesd-v-b
andauthored
Don't report coverage on test directory (#803)
* Don't report coverage on test directory * Upload coverage from zarr3 tests * Lint --------- Co-authored-by: Davis Bennett <[email protected]>
1 parent 69bc233 commit da2e0aa

File tree

3 files changed

+12
-4
lines changed

3 files changed

+12
-4
lines changed

.github/codecov.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ coverage:
77
patch:
88
default:
99
target: 100
10+
ignore:
11+
- "numcodecs/tests/**"
1012
comment:
1113
layout: "diff, files"
1214
behavior: default

.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: 3 additions & 3 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]
292292
run-tests = "pytest -v"

0 commit comments

Comments
 (0)