@@ -27,19 +27,20 @@ jobs:
2727 - name : Set up Python
2828 uses : actions/setup-python@v4
2929 with :
30- python-version : " >=3.10 .0"
30+ python-version : " >=3.11 .0"
3131
3232 - name : Verify QuadBLAS submodule
3333 run : |
3434 ls -la quaddtype/numpy_quaddtype/QBLAS/
3535 ls -la quaddtype/numpy_quaddtype/QBLAS/include/quadblas/
3636
3737 - name : Install cibuildwheel
38- run : pip install cibuildwheel==2.20.0
38+ run : pip install cibuildwheel==3.1.4
3939
4040 - name : Build wheels
4141 env :
42- CIBW_BUILD : " cp310-manylinux_x86_64 cp311-manylinux_x86_64 cp312-manylinux_x86_64"
42+ CIBW_BUILD : " cp310-manylinux_x86_64 cp311-manylinux_x86_64 cp312-manylinux_x86_64 cp313-manylinux_x86_64 cp313t-manylinux_x86_64 cp314-manylinux_x86_64 cp314t-manylinux_x86_64"
43+ CIBW_ENABLE : cpython-prerelease cpython-freethreading
4344 CIBW_MANYLINUX_X86_64_IMAGE : manylinux_2_28
4445 CIBW_BUILD_VERBOSITY : " 3"
4546 CIBW_BEFORE_ALL : |
6465 auditwheel repair -w {dest_dir} --plat manylinux_2_28_x86_64 {wheel}
6566 CIBW_TEST_COMMAND : |
6667 pip install {package}[test]
67- pytest -s {project}/tests
68+ if python -c "import sys; exit(0 if hasattr(sys, '_is_gil_enabled') and not sys._is_gil_enabled() else 1)"; then
69+ pytest --parallel-threads=10 --iterations=10 {project}/tests
70+ else
71+ pytest -s {project}/tests
72+ fi
6873 CIBW_TEST_EXTRAS : " test"
6974 run : |
7075 python -m cibuildwheel --output-dir wheelhouse
9095 - name : Set up Python
9196 uses : actions/setup-python@v4
9297 with :
93- python-version : " 3.10 "
98+ python-version : " >=3.11.0 "
9499
95100 - name : Install dependencies
96101 run : |
@@ -117,12 +122,16 @@ jobs:
117122 ls -la quaddtype/numpy_quaddtype/QBLAS/
118123 ls -la quaddtype/numpy_quaddtype/QBLAS/include/quadblas/
119124
120- - name : Install cibuildwheel
121- run : pip install cibuildwheel==2.20.0
125+ - name : Installing Python dependencies
126+ run : |
127+ pip install -U pip
128+ pip install cibuildwheel==3.1.4
129+ pip install pytest-run-parallel
122130
123131 - name : Build wheels
124132 env :
125- CIBW_BUILD : " cp310-* cp311-* cp312-*"
133+ CIBW_BUILD : " cp310-* cp311-* cp312-* cp313-* cp314-* cp313t-* cp314t-*"
134+ CIBW_ENABLE : cpython-prerelease cpython-freethreading
126135 CIBW_ARCHS_MACOS : ${{ matrix.os == 'macos-13' && 'x86_64' || 'arm64' }}
127136 CIBW_BUILD_VERBOSITY : " 3"
128137 CIBW_ENVIRONMENT : >
@@ -136,7 +145,11 @@ jobs:
136145 delocate-wheel --require-archs {delocate_archs} -w {dest_dir} -v {wheel}
137146 CIBW_TEST_COMMAND : |
138147 pip install {package}[test]
139- pytest -s {project}/tests
148+ if python -c "import sys; exit(0 if hasattr(sys, '_is_gil_enabled') and not sys._is_gil_enabled() else 1)"; then
149+ pytest --parallel-threads=10 --iterations=10 {project}/tests
150+ else
151+ pytest -s {project}/tests
152+ fi
140153 CIBW_TEST_EXTRAS : " test"
141154 run : |
142155 python -m cibuildwheel --output-dir wheelhouse
@@ -165,10 +178,10 @@ jobs:
165178 with :
166179 arch : ${{ matrix.architecture }}
167180
168- - name : Set up Python 3.10
181+ - name : Set up Python
169182 uses : actions/setup-python@v4
170183 with :
171- python-version : " 3.10 "
184+ python-version : " >=3.11.0 "
172185 architecture : ${{ matrix.architecture }}
173186
174187 - name : Install CMake
@@ -193,12 +206,13 @@ jobs:
193206 shell : bash -l {0}
194207 run : |
195208 pip install -U pip
196- pip install cibuildwheel==2.20.0 ninja meson meson-python numpy delvewheel pytest
209+ pip install cibuildwheel==3.1.4 ninja meson meson-python numpy delvewheel pytest
197210
198211 - name : Build wheels
199212 env :
200- CIBW_BUILD : " cp310-* cp311-* cp312-*"
201- CIBW_SKIP : " pp* cp36-* cp37-* cp38-* cp39-* cp313-*"
213+ CIBW_BUILD : " cp310-* cp311-* cp312-* cp313-* cp314-* cp313t-* cp314t-*"
214+ CIBW_ENABLE : cpython-prerelease cpython-freethreading
215+ CIBW_SKIP : " pp* cp36-* cp37-* cp38-* cp39-*"
202216 CIBW_ARCHS_WINDOWS : ${{ matrix.architecture == 'x86' && 'x86' || 'AMD64' }}
203217 CIBW_BUILD_VERBOSITY : " 3"
204218 DISTUTILS_USE_SDK : " 1"
@@ -215,7 +229,11 @@ jobs:
215229 CIBW_REPAIR_WHEEL_COMMAND : ' delvewheel repair -w {dest_dir} {wheel} --add-path C:\sleef\bin'
216230 CIBW_TEST_COMMAND : |
217231 pip install {package}[test]
218- pytest -s {project}/tests
232+ if python -c "import sys; exit(0 if hasattr(sys, '_is_gil_enabled') and not sys._is_gil_enabled() else 1)"; then
233+ pytest --parallel-threads=10 --iterations=10 {project}/tests
234+ else
235+ pytest -s {project}/tests
236+ fi
219237 CIBW_TEST_EXTRAS : test
220238 CIBW_TEST_FAIL_FAST : 1
221239 shell : pwsh
0 commit comments