Skip to content

Commit 4af19dc

Browse files
committed
running parallel test for ft
1 parent 1ca8bfa commit 4af19dc

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/build_wheels.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,15 @@ jobs:
164164
CFLAGS="/DDISABLE_QUADBLAS $CFLAGS"
165165
CXXFLAGS="/DDISABLE_QUADBLAS $CXXFLAGS"
166166
CIBW_REPAIR_WHEEL_COMMAND: 'delvewheel repair -w {dest_dir} {wheel} --add-path C:\sleef\bin'
167-
CIBW_TEST_COMMAND_WINDOWS: pip install {package}[test] && pytest -s {project}/tests
167+
CIBW_TEST_COMMAND_WINDOWS: |
168+
pip install {package}[test] && (
169+
python -c "import sys; exit(0 if hasattr(sys, '_is_gil_enabled') and not sys._is_gil_enabled() else 1)"
170+
if errorlevel 1 (
171+
pytest -s {project}/tests
172+
) else (
173+
pytest --parallel-threads=10 --iterations=10 {project}/tests
174+
)
175+
)
168176
CIBW_TEST_EXTRAS: test
169177
shell: pwsh
170178
run: |

0 commit comments

Comments
 (0)