Skip to content

Commit 4cf3eeb

Browse files
committed
CI: Test on Python 3.13t across OSs
1 parent 59733ff commit 4cf3eeb

File tree

1 file changed

+15
-13
lines changed

1 file changed

+15
-13
lines changed

.github/workflows/test.yml

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ jobs:
113113
fail-fast: false
114114
matrix:
115115
os: ['ubuntu-latest', 'windows-latest', 'macos-13', 'macos-latest']
116-
python-version: ["3.9", "3.10", "3.11", "3.12"]
116+
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13t"]
117117
architecture: ['x64', 'x86', 'arm64']
118118
dependencies: ['full', 'pre']
119119
include:
@@ -125,10 +125,6 @@ jobs:
125125
- os: ubuntu-latest
126126
python-version: 3.9
127127
dependencies: 'min'
128-
# NoGIL
129-
- os: ubuntu-latest
130-
python-version: '3.13-dev'
131-
dependencies: 'dev'
132128
exclude:
133129
# x86 for Windows + Python<3.12
134130
- os: ubuntu-latest
@@ -139,6 +135,8 @@ jobs:
139135
architecture: x86
140136
- python-version: '3.12'
141137
architecture: x86
138+
- python-version: '3.13t'
139+
architecture: x86
142140
# arm64 is available for macos-14+
143141
- os: ubuntu-latest
144142
architecture: arm64
@@ -167,25 +165,29 @@ jobs:
167165
with:
168166
submodules: recursive
169167
fetch-depth: 0
168+
- name: Install the latest version of uv
169+
uses: astral-sh/setup-uv@v3
170170
- name: Set up Python ${{ matrix.python-version }}
171-
if: "!endsWith(matrix.python-version, '-dev')"
171+
if: "!endsWith(matrix.python-version, 't')"
172172
uses: actions/setup-python@v5
173173
with:
174174
python-version: ${{ matrix.python-version }}
175175
architecture: ${{ matrix.architecture }}
176176
allow-prereleases: true
177177
- name: Set up Python ${{ matrix.python-version }}
178-
if: endsWith(matrix.python-version, '-dev')
179-
uses: deadsnakes/[email protected]
180-
with:
181-
python-version: ${{ matrix.python-version }}
182-
nogil: true
178+
if: endsWith(matrix.python-version, 't')
179+
run: |
180+
uv python install ${{ matrix.python-version }}
181+
uv venv --python ${{ matrix.python-version }} ../.venv
182+
. .venv/bin/activate
183+
echo "PATH=$PATH" >> $GITHUB_ENV
184+
echo "VIRTUAL_ENV=$VIRTUAL_ENV" >> $GITHUB_ENV
185+
uv pip install pip
183186
- name: Display Python version
184187
run: python -c "import sys; print(sys.version)"
185188
- name: Install tox
186189
run: |
187-
python -m pip install --upgrade pip
188-
python -m pip install tox tox-gh-actions
190+
uv tool install tox --with=tox-gh-actions --with=tox-uv
189191
- name: Show tox config
190192
run: tox c
191193
- name: Run tox

0 commit comments

Comments
 (0)