Skip to content

Commit d932efc

Browse files
ci(3.14t): add --ignore-gil-enabled so sklearn/xgboost imports don't abort the run
1 parent 5c9d714 commit d932efc

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

.github/workflows/build.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,13 @@ jobs:
2626
# files that import cv2. Pure-Python algorithms in computer_vision/ and
2727
# data_compression/ still run; digital_image_processing/ is almost entirely
2828
# cv2-based so it is skipped as a tree. Re-enable when a cp314t wheel ships.
29+
# --ignore-gil-enabled: some compiled deps (sklearn, xgboost, ...) don't
30+
# yet ship the Py_mod_gil slot, so importing them re-enables the GIL under
31+
# 3.14t. That's an upstream-wheel gap, not our code; the flag lets the suite
32+
# run anyway and pytest-run-parallel still reports which tests are not
33+
# thread-safe. Drop the flag once the scientific stack ships free-threaded wheels.
2934
run: uv run --with=pytest-run-parallel pytest
30-
--iterations=8 --parallel-threads=auto
35+
--iterations=8 --parallel-threads=auto --ignore-gil-enabled
3136
--ignore=computer_vision/cnn_classification.py
3237
--ignore=computer_vision/flip_augmentation.py
3338
--ignore=computer_vision/harris_corner.py

0 commit comments

Comments
 (0)