Skip to content

Commit d63c64c

Browse files
committed
Install 3.13 from deadsnakes
1 parent 366cb05 commit d63c64c

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

.github/workflows/main.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,21 @@ jobs:
1919
- uses: actions/checkout@v4
2020

2121
- uses: actions/setup-python@v5
22-
if: ${{ !endsWith(matrix.python-version, 't') }}
22+
if: ${{ !endsWith(matrix.python-version, 't') && matrix.python-version != '3.13' }}
2323
with:
2424
python-version: ${{ matrix.python-version }}
2525

26-
- uses: deadsnakes/action@6c8b9b82fe0b4344f4b98f2775fcc395df45e494 # v3.1.0
26+
- name: Setup free-threaded variables
2727
if: ${{ endsWith(matrix.python-version, 't') }}
28+
run: |
29+
echo "FREE_THREADED=1" >> "$GITHUB_ENV"
30+
echo "PYTHON_GIL=0" >> "$GITHUB_ENV"
31+
32+
- uses: deadsnakes/action@6c8b9b82fe0b4344f4b98f2775fcc395df45e494 # v3.1.0
33+
if: ${{ endsWith(matrix.python-version, 't') || matrix.python-version == '3.13' }}
2834
with:
2935
python-version: "3.13"
30-
nogil: true
36+
nogil: ${{ env.FREE_THREADED == '1' }}
3137

3238
- name: Install tox
3339
run: pip install tox

0 commit comments

Comments
 (0)