Skip to content

Commit 0d0fb91

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

4 files changed

Lines changed: 12 additions & 5 deletions

File tree

.github/workflows/ci.yml

Lines changed: 7 additions & 2 deletions
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:
@@ -51,7 +51,12 @@ jobs:
5151
run: python -m pip install . --group test
5252

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

5661
checkroot:
5762
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: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ test = [
5858
"requests",
5959
"scipy",
6060
"pytest >=6.0",
61+
"pytest-run-parallel",
6162
"awkward >=2.2.2",
6263
"dask-awkward >=2024.1.1",
6364
]
@@ -143,10 +144,10 @@ BUILD_DEMO = "OFF"
143144
write_to = "src/correctionlib/version.py"
144145

145146
[tool.cibuildwheel]
146-
skip = ["cp314t-*"]
147+
skip = []
147148
test-groups = ["test"]
148149
test-command = "python -m pytest {package}/tests"
149-
test-skip = ["*-musllinux_*", "cp3{10,11,12}-win32"]
150+
test-skip = ["cp314t-*", "cp313t-*", "*-musllinux_*", "cp3{10,11,12}-win32", "cp3*t-*:x86_64"]
150151

151152
[tool.cibuildwheel.environment]
152153
# 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)