Skip to content

Commit aa39df3

Browse files
committed
CI: enable python 3.13
1 parent 66c7756 commit aa39df3

File tree

1 file changed

+34
-5
lines changed

1 file changed

+34
-5
lines changed

.github/workflows/ci.yml

Lines changed: 34 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,18 @@ jobs:
8080
python -m build
8181
shell: bash
8282

83+
- name: Set up Python 3.13
84+
uses: actions/setup-python@v5
85+
with:
86+
python-version: "3.13"
87+
allow-prereleases: true
88+
89+
- name: Build package 3.13
90+
run: |
91+
pip install build wheel
92+
python -m build
93+
shell: bash
94+
8395
- name: Upload Artifact
8496
uses: actions/upload-artifact@v4
8597
with:
@@ -93,7 +105,7 @@ jobs:
93105
strategy:
94106
fail-fast: false
95107
matrix:
96-
python-version: [3.7, 3.8, 3.9, "3.10", "3.11", "3.12"]
108+
python-version: [3.7, 3.8, 3.9, "3.10", "3.11", "3.12", "3.13"]
97109

98110
steps:
99111
- uses: actions/checkout@v4
@@ -102,6 +114,7 @@ jobs:
102114
uses: actions/setup-python@v5
103115
with:
104116
python-version: ${{ matrix.python-version }}
117+
allow-prereleases: true
105118

106119
- uses: actions/download-artifact@v4
107120
with:
@@ -151,14 +164,14 @@ jobs:
151164
cc: gcc-14
152165
cxx: g++-14
153166
platform: ubuntu-24.04
154-
python: "3.12"
167+
python: "3.13"
155168
deps: develop
156169
flavour: linux
157170
- compiler: clang
158171
cc: clang-18
159172
cxx: clang++-18
160173
platform: ubuntu-24.04
161-
python: "3.12"
174+
python: "3.13"
162175
deps: develop
163176
flavour: linux
164177
- compiler: macos-intel
@@ -168,7 +181,7 @@ jobs:
168181
flavour: macos
169182
- compiler: macos-arm
170183
platform: macos-14
171-
python: "3.12"
184+
python: "3.13"
172185
deps: develop
173186
flavour: macos
174187

@@ -194,6 +207,7 @@ jobs:
194207
- uses: actions/setup-python@v5
195208
with:
196209
python-version: "${{ matrix.python }}"
210+
allow-prereleases: true
197211

198212
- name: Install packages
199213
run: |
@@ -323,6 +337,20 @@ jobs:
323337
env:
324338
CMAKE_TOOLCHAIN_FILE: C:/vcpkg/scripts/buildsystems/vcpkg.cmake
325339

340+
- name: Set up Python 3.13
341+
uses: actions/setup-python@v5
342+
with:
343+
python-version: "3.13"
344+
allow-prereleases: true
345+
346+
- name: Build package 3.13
347+
run: |
348+
pip install build wheel
349+
python -m build
350+
shell: bash
351+
env:
352+
CMAKE_TOOLCHAIN_FILE: C:/vcpkg/scripts/buildsystems/vcpkg.cmake
353+
326354
- name: 'Upload Artifact'
327355
uses: actions/upload-artifact@v4
328356
with:
@@ -336,7 +364,7 @@ jobs:
336364
strategy:
337365
fail-fast: false
338366
matrix:
339-
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
367+
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
340368

341369
env:
342370
PYTEST_ADDOPTS: ${{ matrix.test-args }}
@@ -348,6 +376,7 @@ jobs:
348376
uses: actions/setup-python@v5
349377
with:
350378
python-version: ${{ matrix.python-version }}
379+
allow-prereleases: true
351380

352381
- uses: actions/download-artifact@v4
353382
with:

0 commit comments

Comments
 (0)