From fc8e3a08bac3f63c364c735282d7e4e224f71c60 Mon Sep 17 00:00:00 2001 From: "Philipp A." Date: Tue, 11 Nov 2025 14:12:26 +0100 Subject: [PATCH 1/2] ci(codecov): use flags instead of the broken env_vars --- .github/workflows/codespell.yml | 6 ++---- .github/workflows/publish.yml | 4 +--- .github/workflows/test-cpu.yml | 19 +++++-------------- .github/workflows/test-gpu.yml | 4 +--- 4 files changed, 9 insertions(+), 24 deletions(-) diff --git a/.github/workflows/codespell.yml b/.github/workflows/codespell.yml index c13950b2f..ecfa9f628 100644 --- a/.github/workflows/codespell.yml +++ b/.github/workflows/codespell.yml @@ -16,8 +16,6 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - with: - fetch-depth: 0 - filter: blob:none + - uses: actions/checkout@v5 + with: { fetch-depth: 0, filter: "blob:none" } - uses: codespell-project/actions-codespell@v2 diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index ebe4fa8f6..4f9d276d2 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -12,9 +12,7 @@ jobs: id-token: write # to authenticate as Trusted Publisher to pypi.org steps: - uses: actions/checkout@v5 - with: - fetch-depth: 0 - filter: blob:none + with: { fetch-depth: 0, filter: "blob:none" } - uses: actions/setup-python@v6 with: python-version: "3.x" diff --git a/.github/workflows/test-cpu.yml b/.github/workflows/test-cpu.yml index 9e4f3c6c7..cdaaa3bd0 100644 --- a/.github/workflows/test-cpu.yml +++ b/.github/workflows/test-cpu.yml @@ -22,9 +22,7 @@ jobs: envs: ${{ steps.get-envs.outputs.envs }} steps: - uses: actions/checkout@v5 - with: - filter: blob:none - fetch-depth: 0 + with: { fetch-depth: 0, filter: "blob:none" } - uses: astral-sh/setup-uv@v7 with: enable-cache: false @@ -44,14 +42,9 @@ jobs: matrix: env: ${{ fromJSON(needs.get-environments.outputs.envs) }} io_mark: ["zarr_io", "not zarr_io", "dask_distributed"] # dask_distributed should not be run with -n auto as it uses a client with processes - env: # environment variables for use in codecov’s env_vars tagging - ENV_NAME: ${{ matrix.env.name }} - IO_MARK: ${{ matrix.io_mark }} steps: - uses: actions/checkout@v5 - with: - fetch-depth: 0 - filter: blob:none + with: { fetch-depth: 0, filter: "blob:none" } - name: Install system dependencies run: sudo apt install -y hdf5-tools @@ -81,7 +74,7 @@ jobs: uses: codecov/test-results-action@v1 with: token: ${{ secrets.CODECOV_TOKEN }} - env_vars: ENV_NAME,IO_MARK + flags: ${{ matrix.env.name }},${{ matrix.io_mark }} fail_ci_if_error: true file: test-data/test-results.xml @@ -89,7 +82,7 @@ jobs: uses: codecov/codecov-action@v5 with: token: ${{ secrets.CODECOV_TOKEN }} - env_vars: ENV_NAME,IO_MARK + flags: ${{ matrix.env.name }},${{ matrix.io_mark }} fail_ci_if_error: true files: test-data/coverage.xml @@ -97,9 +90,7 @@ jobs: runs-on: ubuntu-24.04 steps: - uses: actions/checkout@v5 - with: - fetch-depth: 0 - filter: blob:none + with: { fetch-depth: 0, filter: "blob:none" } - name: Set up Python uses: actions/setup-python@v6 diff --git a/.github/workflows/test-gpu.yml b/.github/workflows/test-gpu.yml index bd4263ff2..fcdf348c3 100644 --- a/.github/workflows/test-gpu.yml +++ b/.github/workflows/test-gpu.yml @@ -45,9 +45,7 @@ jobs: steps: - uses: actions/checkout@v4 # TODO: upgrade once cirun image supports node 24 - with: - fetch-depth: 0 - filter: blob:none + with: { fetch-depth: 0, filter: "blob:none" } - name: Nvidia SMI sanity check run: nvidia-smi From 44132424634cff890f758b03a5c5b0a8e9a3263a Mon Sep 17 00:00:00 2001 From: "Philipp A." Date: Tue, 11 Nov 2025 14:20:14 +0100 Subject: [PATCH 2/2] add GPU flags --- .github/workflows/test-gpu.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/test-gpu.yml b/.github/workflows/test-gpu.yml index fcdf348c3..930f4f614 100644 --- a/.github/workflows/test-gpu.yml +++ b/.github/workflows/test-gpu.yml @@ -86,6 +86,7 @@ jobs: - uses: codecov/codecov-action@v5 with: token: ${{ secrets.CODECOV_TOKEN }} + flags: hatch-test.stable,gpu fail_ci_if_error: true files: test-data/coverage.xml