Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.9", "3.13", "3.14"]
python-version: ["3.9", "3.13", "3.14", "3.14t"]
runs-on: [ubuntu-latest, macos-latest, windows-latest, windows-11-arm]
exclude:
- python-version: "3.9"
Expand All @@ -54,7 +54,12 @@ jobs:
run: python -m pip install . --group test

- name: Test package
run: pytest
if: ${{ !endsWith(matrix.python-version , 't') }}
run: python -m pytest -ra

- name: Test package (parallel)
if: endsWith(matrix.python-version , 't')
run: python -m pytest -ra --parallel-threads=16 --iterations=10
Comment on lines +57 to +62
Copy link
Copy Markdown
Contributor

@ikrommyd ikrommyd Feb 27, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, apologies for seeing these one by one, but one final thought here. It is now doing only parallel testing in 3.14t. We should probably do normal testing on all of them and parallel testing as an extra in free-threaded python. (just no if condition for python -m pytest -ra) basically.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The parallel tests are strictly more stringent since we have deterministic outcomes here. Further testing is unnecessary.

Copy link
Copy Markdown
Contributor

@ikrommyd ikrommyd Feb 27, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What I would try to catch with this is a pybind11 or cpython bug that isn't there in free-threaded mode in 3.14, that's all.

Copy link
Copy Markdown
Contributor Author

@lgray lgray Feb 27, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That sounds like tests the python core team would/should do, not us. The code on our side is the same.


checkroot:
name: Check ROOT bindings
Expand Down
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ test = [
"requests",
"scipy",
"pytest >=6.0",
"pytest-run-parallel",
"awkward >=2.2.2",
"dask-awkward >=2024.1.1",
]
Expand Down Expand Up @@ -143,7 +144,7 @@ BUILD_DEMO = "OFF"
write_to = "src/correctionlib/version.py"

[tool.cibuildwheel]
skip = ["cp314t-*", "cp3{9,10}*-win_arm64"]
skip = ["cp3{9,10}*-win_arm64"]
test-groups = ["test"]
test-command = "python -m pytest {package}/tests"
test-skip = ["*-musllinux_*", "cp3{10,11,12}-win32", "cp*-win_arm64"]
Expand Down
2 changes: 1 addition & 1 deletion src/python.cc
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ namespace {
return output;
}
}
PYBIND11_MODULE(_core, m) {
PYBIND11_MODULE(_core, m, py::mod_gil_not_used()) {
m.doc() = "python binding for corrections evaluator";

py::class_<Variable>(m, "Variable")
Expand Down
Loading