Skip to content

Commit 8a2a619

Browse files
committed
chore: add py314t for test
Signed-off-by: Chojan Shang <[email protected]>
1 parent e3b8d32 commit 8a2a619

File tree

3 files changed

+18
-4
lines changed

3 files changed

+18
-4
lines changed

.github/actions/setup-python-env/action.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ runs:
1515
using: "composite"
1616
steps:
1717
- uses: actions/setup-python@v5
18+
if: inputs.python-version != '3.14t'
1819
with:
1920
python-version: ${{ inputs.python-version }}
2021

@@ -23,8 +24,17 @@ runs:
2324
with:
2425
version: ${{ inputs.uv-version }}
2526
enable-cache: "true"
26-
cache-suffix: ${{ matrix.python-version }}
27+
cache-suffix: ${{ inputs.python-version }}
28+
29+
- name: Install freethreaded Python
30+
if: inputs.python-version == '3.14t'
31+
run: uv python install 3.14t
32+
shell: bash
33+
34+
- name: Set uv Python spec
35+
run: echo "UV_PYTHON_SPEC=${{ inputs.python-version }}" >> $GITHUB_ENV
36+
shell: bash
2737

2838
- name: Install Python dependencies
29-
run: uv sync --all-extras --all-groups --frozen
39+
run: uv sync --python "${UV_PYTHON_SPEC}" --all-extras --all-groups --frozen
3040
shell: bash

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
runs-on: ubuntu-latest
3030
strategy:
3131
matrix:
32-
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
32+
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14", "3.14t"]
3333
fail-fast: false
3434
defaults:
3535
run:

tox.ini

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tox]
22
skipsdist = true
3-
envlist = py310, py311, py312, py313, py314
3+
envlist = py310, py311, py312, py313, py314, py314t
44

55
[gh-actions]
66
python =
@@ -9,6 +9,7 @@ python =
99
3.12: py312
1010
3.13: py313
1111
3.14: py314
12+
3.14t: py314t
1213

1314
[testenv]
1415
passenv = PYTHON_VERSION
@@ -17,3 +18,6 @@ commands =
1718
uv sync --python {envpython}
1819
uv run python -m pytest --doctest-modules tests --cov --cov-config=pyproject.toml --cov-report=xml
1920
ty check
21+
22+
[testenv:py314t]
23+
basepython = python3.14t

0 commit comments

Comments
 (0)