Skip to content

Commit ddf1fa5

Browse files
committed
wheels and tests for 3.13t, 3.14t
1 parent 26f1bf0 commit ddf1fa5

4 files changed

Lines changed: 11 additions & 4 deletions

File tree

.github/workflows/ci.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
strategy:
3434
fail-fast: false
3535
matrix:
36-
python-version: ["3.9", "3.13", "3.14"]
36+
python-version: ["3.9", "3.13", "3.13t", "3.14", "3.14t"]
3737
runs-on: [ubuntu-latest, macos-latest, windows-latest]
3838

3939
steps:
@@ -52,6 +52,12 @@ jobs:
5252

5353
- name: Test package
5454
run: pytest
55+
if: ! endsWith(matrix.python-version, 't')
56+
run: python -m pytest -ra
57+
58+
- name: Test package (parallel)
59+
if: endsWith( matrix.python-version, 't')
60+
run: python -Xgil=0 -m pytest -ra --parallel-threads=16 --iterations=10
5561

5662
checkroot:
5763
name: Check ROOT bindings

.github/workflows/wheels.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ jobs:
5151
- uses: pypa/cibuildwheel@v3.3
5252
env:
5353
CIBW_ARCHS: ${{ matrix.arch }}
54+
CIBW_ENABLE: cpython-freethreading
5455
MACOSX_DEPLOYMENT_TARGET: 11.0
5556

5657
- name: Upload wheels

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,10 +143,10 @@ BUILD_DEMO = "OFF"
143143
write_to = "src/correctionlib/version.py"
144144

145145
[tool.cibuildwheel]
146-
skip = ["cp314t-*"]
146+
skip = []
147147
test-groups = ["test"]
148148
test-command = "python -m pytest {package}/tests"
149-
test-skip = ["*-musllinux_*", "cp3{10,11,12}-win32"]
149+
test-skip = ["cp314t-*", "*-musllinux_*", "cp3{10,11,12}-win32"]
150150

151151
[tool.cibuildwheel.environment]
152152
# this makes sure that we build only on platforms that have a corresponding numpy wheel

src/python.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ namespace {
8585
return output;
8686
}
8787
}
88-
PYBIND11_MODULE(_core, m) {
88+
PYBIND11_MODULE(_core, m, py::mod_gil_not_used()) {
8989
m.doc() = "python binding for corrections evaluator";
9090

9191
py::class_<Variable>(m, "Variable")

0 commit comments

Comments
 (0)