Skip to content

Commit e605afc

Browse files
timtreisclaude
andcommitted
Collect coverage only on py3.14-stable, use xdist for other envs
Coverage requires serial execution (coverage run doesn't instrument xdist workers). Mirror squidpy's approach: run-cov without -n auto on one env (py3.14-stable), run with -n auto on all others. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent bf18828 commit e605afc

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

.github/workflows/test.yaml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,14 @@ jobs:
7575
- name: Run tests
7676
env:
7777
DISPLAY: ":42"
78-
run: uvx hatch run ${{ matrix.env.name }}:run-cov -v --color=yes -n auto
78+
run: >-
79+
uvx hatch run ${{ matrix.env.name }}:${{
80+
matrix.env.name == 'hatch-test.py3.14-stable' && 'run-cov' || 'run'
81+
}} -v --color=yes ${{
82+
matrix.env.name == 'hatch-test.py3.14-stable' && ' ' || '-n auto'
83+
}}
7984
- name: Generate coverage report
85+
if: matrix.env.name == 'hatch-test.py3.14-stable'
8086
run: |
8187
test -f .coverage || uvx hatch run ${{ matrix.env.name }}:cov-combine
8288
uvx hatch run ${{ matrix.env.name }}:cov-report
@@ -87,6 +93,7 @@ jobs:
8793
name: visual_test_results_${{ matrix.env.name }}
8894
path: tests/figures/*
8995
- name: Upload coverage
96+
if: matrix.env.name == 'hatch-test.py3.14-stable'
9097
uses: codecov/codecov-action@v5
9198
with:
9299
fail_ci_if_error: true

0 commit comments

Comments
 (0)