11linux :
2- image : python:latest
3- # make a docker daemon available for cibuildwheel to use
2+ image : python:3.13
43 services :
54 - name : docker:dind
65 entrypoint : ["env", "-u", "DOCKER_HOST"]
@@ -10,36 +9,50 @@ linux:
109 DOCKER_DRIVER : overlay2
1110 # See https://github.com/docker-library/docker/pull/166
1211 DOCKER_TLS_CERTDIR : " "
12+
13+ # skip all but the basic tests
14+ # (comment the below line in a PR to debug a Gitlab-specific issue)
15+ PYTEST_ADDOPTS : -k "unit_test or test_0_basic" --suppress-no-test-exit-code
16+ rules :
17+ - if : ' $CI_COMMIT_BRANCH == "main" || $CI_COMMIT_BRANCH =~ /^gitlab/'
18+ variables :
19+ CIBW_ENABLE : " all"
1320 script :
1421 - curl -sSL https://get.docker.com/ | sh
15- - python -m pip install cibuildwheel==2.21.3
16- - cibuildwheel --output-dir wheelhouse
17- artifacts :
18- paths :
19- - wheelhouse/
22+ - docker run --rm --privileged docker.io/tonistiigi/binfmt:latest --install all
23+ - python -m pip install -U pip
24+ - python -m pip install -e. pytest-custom-exit-code --group test
25+ - python ./bin/run_tests.py
2026
2127windows :
22- image : mcr.microsoft.com/windows/servercore:1809
23- before_script :
24- - choco install python -y --version 3.12.4
25- - choco install git.install -y
26- - py -m pip install cibuildwheel==2.21.3
28+ variables :
29+ PYTEST_ADDOPTS : -k "unit_test or test_0_basic" --suppress-no-test-exit-code
30+ rules :
31+ - if : ' $CI_COMMIT_BRANCH == "main" || $CI_COMMIT_BRANCH =~ /^gitlab/'
32+ variables :
33+ # Everything except graalpy. GraalPy is JVM-based and very slow to
34+ # start; on the small (2-core) GitLab SaaS Windows runners,
35+ # virtualenv's interpreter query for graalpy.exe times out, failing
36+ # the build. (Other platforms run the full "all" group.)
37+ CIBW_ENABLE : " cpython-prerelease pypy pypy-eol pyodide-eol pyodide-prerelease"
2738 script :
28- - py -m cibuildwheel --output-dir wheelhouse --platform windows
29- artifacts :
30- paths :
31- - wheelhouse/
39+ - python -m pip install -U pip
40+ - python -m pip install -e. pytest-custom-exit-code --group test
41+ - python bin\run_tests.py
3242 tags :
3343 - saas-windows-medium-amd64
3444
3545macos :
36- image : macos-14-xcode-15
37- before_script :
38- - python3 -m pip install cibuildwheel==2.21.3
46+ image : macos-15-xcode-16
47+ variables :
48+ PYTEST_ADDOPTS : -k "unit_test or test_0_basic" --suppress-no-test-exit-code
49+ rules :
50+ - if : ' $CI_COMMIT_BRANCH == "main" || $CI_COMMIT_BRANCH =~ /^gitlab/'
51+ variables :
52+ CIBW_ENABLE : " all"
3953 script :
40- - python3 -m cibuildwheel --output-dir wheelhouse
41- artifacts :
42- paths :
43- - wheelhouse/
54+ - python3 -m pip install -U pip
55+ - python3 -m pip install -e. pytest-custom-exit-code --group test
56+ - python3 ./bin/run_tests.py
4457 tags :
4558 - saas-macos-medium-m1
0 commit comments