Skip to content

Commit 873b732

Browse files
authored
Use actions/setup-python for free-threaded testing (#13511)
1 parent 3f617a3 commit 873b732

File tree

1 file changed

+5
-32
lines changed

1 file changed

+5
-32
lines changed

.github/workflows/main.yml

+5-32
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ jobs:
3737
- "3.11"
3838
- "3.12"
3939
- "3.13"
40+
- "3.13t"
4041
docutils:
4142
- "0.20"
4243
- "0.21"
@@ -68,8 +69,12 @@ jobs:
6869
enable-cache: false
6970
- name: Install dependencies
7071
run: uv pip install . --group test
72+
env:
73+
UV_PYTHON: "python${{ matrix.python }}"
7174
- name: Install Docutils ${{ matrix.docutils }}
7275
run: uv pip install --upgrade "docutils~=${{ matrix.docutils }}.0"
76+
env:
77+
UV_PYTHON: "python${{ matrix.python }}"
7378
- name: Test with pytest
7479
run: python -m pytest -n logical --dist=worksteal -vv --durations 25
7580
env:
@@ -111,38 +116,6 @@ jobs:
111116
env:
112117
PYTHONWARNINGS: "error" # treat all warnings as errors
113118

114-
free-threaded:
115-
runs-on: ubuntu-latest
116-
name: Python ${{ matrix.python }} (free-threaded)
117-
timeout-minutes: 15
118-
strategy:
119-
fail-fast: false
120-
matrix:
121-
python:
122-
- "3.13"
123-
124-
steps:
125-
- uses: actions/checkout@v4
126-
with:
127-
persist-credentials: false
128-
- name: Set up Python ${{ matrix.python }} (deadsnakes)
129-
uses: deadsnakes/[email protected]
130-
with:
131-
python-version: ${{ matrix.python }}
132-
nogil: true
133-
- name: Check Python version
134-
run: python --version --version
135-
- name: Install graphviz
136-
run: sudo apt-get install --no-install-recommends --yes graphviz
137-
- name: Install dependencies
138-
run: |
139-
python -m pip install --upgrade pip
140-
python -m pip install . --group test
141-
- name: Test with pytest
142-
run: python -m pytest -n logical --dist=worksteal -vv --durations 25
143-
env:
144-
PYTHONWARNINGS: "error" # treat all warnings as errors
145-
146119
deadsnakes-free-threaded:
147120
runs-on: ubuntu-latest
148121
name: Python ${{ matrix.python }} (free-threaded)

0 commit comments

Comments
 (0)