Skip to content

Commit bc56c21

Browse files
authored
ci: add Python 3.13 and 3.13t testing (#76)
* ci: add Python 3.13 and 3.13t testing * skip freethreaded + abi3 combination
1 parent b674292 commit bc56c21

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed

.github/workflows/ci.yml

+9-11
Original file line numberDiff line numberDiff line change
@@ -34,21 +34,17 @@ jobs:
3434
name: python${{ matrix.python-version }} ${{ matrix.os }} rust-${{ matrix.rust}}
3535
runs-on: ${{ matrix.os }}
3636
strategy:
37-
fail-fast: false # If one platform fails, allow the rest to keep testing.
37+
fail-fast: false # If one platform fails, allow the rest to keep testing.
3838
matrix:
3939
python-architecture: ["x64"]
40-
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
41-
os: [
42-
"macos-13",
43-
"ubuntu-latest",
44-
"windows-latest",
45-
]
40+
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13", "3.13t"]
41+
os: ["macos-13", "ubuntu-latest", "windows-latest"]
4642
rust: [stable]
4743
include:
48-
- python-version: "3.12"
44+
- python-version: "3.13"
4945
os: "ubuntu-latest"
5046
rust: "1.63"
51-
- python-version: "3.12"
47+
- python-version: "3.13"
5248
python-architecture: "arm64"
5349
os: "macos-latest"
5450
rust: "stable"
@@ -57,7 +53,7 @@ jobs:
5753
- uses: actions/checkout@v4
5854

5955
- name: Set up Python ${{ matrix.python-version }}
60-
uses: actions/setup-python@v5
56+
uses: Quansight-Labs/setup-python@v5
6157
with:
6258
python-version: ${{ matrix.python-version }}
6359
architecture: ${{ matrix.python-python-architecture }}
@@ -73,7 +69,9 @@ jobs:
7369
- name: Test
7470
run: cargo test --verbose
7571

76-
- name: Test (abi3)
72+
# https://github.com/PyO3/pyo3/issues/4709 - can't use abi3 w. freethreaded build
73+
- if: ${{ !endsWith(matrix.python-version, 't') }}
74+
name: Test (abi3)
7775
run: cargo test --verbose --features pyo3/abi3-py37
7876

7977
env:

0 commit comments

Comments
 (0)