Skip to content

Commit b13276d

Browse files
authored
avoid cov environment on free-threaded Pythons (#2267)
1 parent 7c7055f commit b13276d

1 file changed

Lines changed: 13 additions & 2 deletions

File tree

.github/workflows/tests.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,23 @@ jobs:
4747
- name: Run tests on Linux
4848
if: ${{ startsWith(runner.os, 'linux') }}
4949
run: |
50-
xvfb-run --auto-servernum hatch run cov:test
50+
# cov: is not installable on free-threaded yet
51+
if [[ "${{ matrix.python-version }}" == *t ]]; then
52+
target="test:test"
53+
else
54+
target="cov:test"
55+
fi
56+
xvfb-run --auto-servernum hatch run $target
5157
5258
- name: Run tests on other platforms
5359
if: ${{ !startsWith(runner.os, 'linux') }}
5460
run: |
55-
hatch run cov:nowarn
61+
if [[ "${{ matrix.python-version }}" == *t ]]; then
62+
target="test:nowarn"
63+
else
64+
target="cov:nowarn"
65+
fi
66+
hatch run $target
5667
5768
- uses: jupyterlab/maintainer-tools/.github/actions/upload-coverage@v1
5869

0 commit comments

Comments
 (0)