Skip to content

Commit 0fac4ad

Browse files
committed
Test on free-threaded Python
See gitpython-developers#2005. (This may change by removing some of the jobs, or in other ways.)
1 parent fe7533e commit 0fac4ad

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.github/workflows/pythonpackage.yml

+10-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
strategy:
1414
matrix:
1515
os-type: [ubuntu, macos, windows]
16-
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
16+
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "3.13", "3.13t"]
1717
exclude:
1818
- os-type: macos
1919
python-version: "3.7" # Not available for the ARM-based macOS runners.
@@ -40,11 +40,20 @@ jobs:
4040
fetch-depth: 0
4141

4242
- name: Set up Python ${{ matrix.python-version }}
43+
if: |-
44+
!endsWith(matrix.blah, 't')
4345
uses: actions/setup-python@v5
4446
with:
4547
python-version: ${{ matrix.python-version }}
4648
allow-prereleases: ${{ matrix.experimental }}
4749

50+
- name: Set up Python ${{ matrix.python-version }} (free-threaded)
51+
if: endsWith(matrix.blah, 't')
52+
uses: Quansight-Labs/setup-python@v5
53+
with:
54+
python-version: ${{ matrix.python-version }}
55+
allow-prereleases: ${{ matrix.experimental }}
56+
4857
- name: Set up WSL (Windows)
4958
if: matrix.os-type == 'windows'
5059
uses: Vampire/[email protected]

0 commit comments

Comments
 (0)