Skip to content

Commit 7bb911f

Browse files
Test with free-threaded Python 3.13
1 parent 179cb77 commit 7bb911f

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

.github/workflows/publish.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ jobs:
5959
CIBW_ARCHS_LINUX: auto aarch64
6060
CIBW_ARCHS_MACOS: auto universal2
6161
CIBW_BUILD_FRONTEND: build
62+
CIBW_FREE_THREADED_SUPPORT: 1
6263
- uses: actions/upload-artifact@834a144ee995460fba8ed112a2fc961b36a5ec5a # v4.3.6
6364
with:
6465
name: build-wheels-${{ matrix.os }}

.github/workflows/tests.yaml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ jobs:
2222
matrix:
2323
include:
2424
- {python: '3.13'}
25+
- {python: '3.13', free-threaded: true}
2526
- {python: '3.12'}
2627
- {name: Windows, python: '3.12', os: windows-latest}
2728
- {name: Mac, python: '3.12', os: macos-latest}
@@ -33,13 +34,21 @@ jobs:
3334
steps:
3435
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
3536
- uses: actions/setup-python@39cd14951b08e74b54015e9e001cdefcf80e669f # v5.1.1
37+
if: ${{ !matrix.free-threaded }}
3638
with:
3739
python-version: ${{ matrix.python }}
3840
allow-prereleases: true
3941
cache: pip
4042
cache-dependency-path: requirements*/*.txt
43+
- uses: deadsnakes/action@e640ac8743173a67cca4d7d77cd837e514bf98e8 # v3.2.0
44+
if: ${{ matrix.free-threaded }}
45+
with:
46+
python-version: ${{ matrix.python }}
47+
nogil: true
4148
- run: pip install tox
42-
- run: tox run -e ${{ matrix.tox || format('py{0}', matrix.python) }}
49+
- env:
50+
PYTHON_GIL: ${{ matrix.free-threaded && '0' || '1' }}
51+
run: tox run -e ${{ matrix.tox || format('py{0}', matrix.python) }}
4352
typing:
4453
runs-on: ubuntu-latest
4554
steps:

0 commit comments

Comments
 (0)