Skip to content

Commit c9b734e

Browse files
committed
ci: disable plugin when not running on freethreaded builds
1 parent 38a8ea2 commit c9b734e

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

ci/tools/run-tests

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ FREE_THREADING=""
2626
if python -c 'import sys; assert not sys._is_gil_enabled()' 2> /dev/null; then
2727
FREE_THREADING+="-ft"
2828
PYTEST_ARGS+=("--require-gil-disabled" "--threads" "${FREE_THREADING_TEST_THREADS}" "--iterations" "${FREE_THREADING_TEST_ITERATIONS}")
29+
else
30+
PYTEST_ARGS+=("-p" "no:freethreaded")
2931
fi
3032

3133

cuda_bindings/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ test = [
4242
"numpy>=1.21.1",
4343
"pytest>=6.2.4",
4444
"pytest-benchmark>=3.4.1",
45-
"pytest-freethreaded; python_version >= '3.13'"
45+
"pytest-freethreaded"
4646
]
4747

4848
[project.urls]

cuda_core/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ cu13 = ["cuda-bindings[all]==13.*"]
5252
# TODO: these should all be in development dependencies; optional dependencies
5353
# are for features exposed to *users*, not a dumping ground for all tooling
5454
# needed to build and test the project
55-
test = ["cython>=3.1", "setuptools", "pytest>=6.2.4", "pytest-freethreaded; python_version >= '3.13'"]
55+
test = ["cython>=3.1", "setuptools", "pytest>=6.2.4", "pytest-freethreaded"]
5656
test-cu11 = ["cuda-core[test]", "cupy-cuda11x; python_version < '3.14'", "cuda-toolkit[cudart]==11.*"] # runtime headers needed by CuPy
5757
test-cu12 = ["cuda-core[test]", "cupy-cuda12x; python_version < '3.14'", "cuda-toolkit[cudart]==12.*"] # runtime headers needed by CuPy
5858
test-cu13 = ["cuda-core[test]", "cupy-cuda13x; python_version < '3.14'", "cuda-toolkit[cudart]==13.*"] # runtime headers needed by CuPy

cuda_pathfinder/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ dependencies = []
1313
[project.optional-dependencies]
1414
test = [
1515
"pytest>=6.2.4",
16-
"pytest-freethreaded; python_version >= '3.13'"
16+
"pytest-freethreaded"
1717
]
1818
test_nvidia_wheels_cu12 = [
1919
"cuda-toolkit[nvcc,cublas,nvrtc,cudart,cufft,curand,cusolver,cusparse,npp,nvfatbin,nvjitlink,nvjpeg,cccl]==12.*",

0 commit comments

Comments
 (0)