Skip to content

Commit 23d3111

Browse files
Attempt to add Python 3.13 no GIL tests under GitHub actions.
1 parent 1594889 commit 23d3111

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/main.yml

+28
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,32 @@ jobs:
4545
name: coverage
4646
path: .coverage.*
4747

48+
test_linux_no_gil:
49+
name: Test (NO GIL) (${{ matrix.os }}, ${{ matrix.python-version }})
50+
runs-on: ubuntu-latest
51+
strategy:
52+
matrix:
53+
python-version: [3.13-dev]
54+
steps:
55+
- name: Checkout code
56+
uses: actions/checkout@v2
57+
- name: Setup Python ${{ matrix.python-version }}
58+
uses: deadsnakes/[email protected]
59+
with:
60+
python-version: ${{ matrix.python-version }}
61+
nogil: true
62+
- name: Update pip
63+
run: python -m pip install -U pip wheel setuptools
64+
- name: Install tox
65+
run: python -m pip install "tox<4.0.0" "tox-gh-actions<3.0.0"
66+
- name: Test with tox
67+
run: python -m tox
68+
- name: Store partial coverage reports
69+
uses: actions/upload-artifact@v3
70+
with:
71+
name: coverage
72+
path: .coverage.*
73+
4874
# test_aarch64_linux:
4975
# name: Test (${{ matrix.python.os }}, ${{ matrix.python.python-version }}, aarch64)
5076
# runs-on: ${{ matrix.python.os }}
@@ -178,6 +204,7 @@ jobs:
178204
name: Build wheels (3.8+) on ${{ matrix.os }} for ${{ matrix.arch }}
179205
needs:
180206
- test_linux
207+
- test_linux_no_gil
181208
#- test_aarch64_linux
182209
- test_macos
183210
- test_windows
@@ -216,6 +243,7 @@ jobs:
216243
# if: ${{ false }} # disable for now
217244
# needs:
218245
# - test_linux
246+
# - test_linux_no_gil
219247
# - test_macos
220248
# - test_windows
221249
# runs-on: ubuntu-20.04

0 commit comments

Comments
 (0)