diff --git a/.github/codecov.yml b/.github/codecov.yml index e9b99c82..e9b2ef7c 100644 --- a/.github/codecov.yml +++ b/.github/codecov.yml @@ -7,6 +7,8 @@ coverage: patch: default: target: 100 + ignore: + - "numcodecs/tests/**" comment: layout: "diff, files" behavior: default diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 2c6a5350..a0b3b977 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -100,4 +100,10 @@ jobs: - name: Run tests with Zarr ${{ matrix.zarr-version }} shell: "bash -l {0}" - run: pixi run test-zarr-${{ matrix.zarr-version }} \ No newline at end of file + run: pixi run test-zarr-${{ matrix.zarr-version }} + + - uses: codecov/codecov-action@v5 + with: + fail_ci_if_error: true + token: ${{ secrets.CODECOV_TOKEN }} + verbose: true diff --git a/pyproject.toml b/pyproject.toml index db2f3b61..b3017991 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -284,9 +284,9 @@ test-google-crc32c = ["test", "test-google-crc32c"] ls-deps-312 = "uv run --group test-zarr-312 uv pip freeze" ls-deps-313 = "uv run --group test-zarr-313 uv pip freeze" ls-deps-main = "uv run --group test-zarr-main uv pip freeze" -test-zarr-312 = "uv run --group test-zarr-312 pytest numcodecs/tests/test_zarr3.py numcodecs/tests/test_zarr3_import.py" -test-zarr-313 = "uv run --group test-zarr-313 pytest numcodecs/tests/test_zarr3.py numcodecs/tests/test_zarr3_import.py" -test-zarr-main = "uv run --group test-zarr-main pytest numcodecs/tests/test_zarr3.py numcodecs/tests/test_zarr3_import.py" +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" +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" +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" [tool.pixi.feature.test.tasks] run-tests = "pytest -v"