Skip to content

Commit e889566

Browse files
committed
build for python 3.13
1 parent 3836073 commit e889566

File tree

1 file changed

+8
-15
lines changed

1 file changed

+8
-15
lines changed

.github/workflows/ci.yaml

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
workflow_dispatch:
99

1010
env:
11-
MATURIN_VERSION: 1.4.0
11+
MATURIN_VERSION: 1.7.4
1212

1313
jobs:
1414
test:
@@ -35,14 +35,7 @@ jobs:
3535
needs: test
3636
strategy:
3737
matrix:
38-
python:
39-
- version: '3.7'
40-
- version: '3.8'
41-
- version: '3.9'
42-
- version: '3.10'
43-
- version: '3.11'
44-
- version: '3.12'
45-
- version: '3.13'
38+
python: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12', '3.13']
4639
platform:
4740
- os: ubuntu-22.04
4841
- os: macos-12
@@ -54,15 +47,15 @@ jobs:
5447
- uses: actions/checkout@v4
5548
- uses: actions/setup-python@v5
5649
with:
57-
python-version: ${{ matrix.python.constraints || matrix.python.version }}
58-
# allow-prereleases: ${{ matrix.python.version == "3.13" }}
50+
python-version: ${{ matrix.python }}
51+
# allow-prereleases: ${{ matrix.python == "3.13" }}
5952
- name: Build Wheels - Linux
6053
if: matrix.platform.os == 'ubuntu-22.04'
6154
uses: PyO3/maturin-action@v1
6255
with:
6356
maturin-version: ${{ env.MATURIN_VERSION }}
6457
manylinux: auto
65-
args: -i python${{ matrix.python.version }} --release --strip --sdist
58+
args: -i python${{ matrix.python }} --release --strip --sdist
6659

6760
- name: Check that the source distribution installed correctly
6861
if: matrix.platform.os == 'ubuntu-22.04'
@@ -92,7 +85,7 @@ jobs:
9285
- name: Upload wheels
9386
uses: actions/upload-artifact@v4
9487
with:
95-
name: wheels-${{ matrix.platform.os }}-${{ matrix.platform.arch || 'x86_64' }}-${{ matrix.python.version }}
88+
name: wheels-${{ matrix.platform.os }}-${{ matrix.platform.arch || 'x86_64' }}-${{ matrix.python }}
9689
path: target/wheels
9790

9891
linux-cross:
@@ -114,10 +107,10 @@ jobs:
114107
maturin-version: ${{ env.MATURIN_VERSION }}
115108
target: ${{ matrix.target }}
116109
manylinux: auto
117-
args: --release --strip -i python${{ matrix.python.version }}
110+
args: --release --strip -i python${{ matrix.python }}
118111
- uses: actions/upload-artifact@v4
119112
with:
120-
name: wheels-${{ matrix.target }}-${{ matrix.python.version }}
113+
name: wheels-${{ matrix.target }}-${{ matrix.python }}
121114
path: target/wheels
122115

123116
wasm-emscripten:

0 commit comments

Comments
 (0)