Files
cibuildwheel/.cirrus.yml
T

92 lines
3.1 KiB
YAML
Raw Normal View History

2025-06-10 17:57:25 -04:00
only_if: changesInclude('.cirrus.yml') || ($CIRRUS_BRANCH == "main" && !changesIncludeOnly('.github/*', 'bin/*', 'docs/*', '.circleci/*', '.travis.yml', '.pre-commit-config.yaml', '.readthedocs.yml', 'azure-pipelines.yml', 'README.md', 'mkdocs.yml', 'noxfile.py')) || $CIRRUS_BRANCH =~ 'cirrus.*'
2023-07-09 15:59:27 +01:00
2022-07-21 18:40:42 +02:00
run_tests: &RUN_TESTS
install_cibuildwheel_script:
2025-06-10 17:57:25 -04:00
- python -m pip install -U pip
- python -m pip install -e. --group test
2022-07-21 18:40:42 +02:00
run_cibuildwheel_tests_script:
- python ./bin/run_tests.py
linux_x86_task:
2022-09-13 23:58:09 +03:00
timeout_in: 120m
2022-07-21 18:40:42 +02:00
compute_engine_instance:
image_project: cirrus-images
image: family/docker-builder
platform: linux
cpu: 8
memory: 8G
env:
VENV_ROOT: ${HOME}/venv-cibuildwheel
PATH: ${VENV_ROOT}/bin:${PATH}
2022-07-21 18:40:42 +02:00
install_pre_requirements_script:
- docker run --rm --privileged docker.io/tonistiigi/binfmt:latest --install all
- add-apt-repository -y ppa:deadsnakes/ppa
- apt-get update
- apt-get install -y python3.12-venv
- python3.12 -m venv ${VENV_ROOT}
2022-07-21 18:40:42 +02:00
<<: *RUN_TESTS
2022-08-23 19:39:20 +02:00
linux_aarch64_task:
2022-08-23 17:36:31 +02:00
compute_engine_instance:
image_project: cirrus-images
image: family/docker-builder-arm64
architecture: arm64
platform: linux
cpu: 4
memory: 4G
env:
VENV_ROOT: ${HOME}/venv-cibuildwheel
PATH: ${VENV_ROOT}/bin:${PATH}
2022-08-23 17:36:31 +02:00
install_pre_requirements_script:
- docker run --rm --privileged docker.io/tonistiigi/binfmt:latest --install all
- add-apt-repository -y ppa:deadsnakes/ppa
- apt-get update
- apt-get install -y python3.12-venv
- python3.12 -m venv ${VENV_ROOT}
2022-08-23 17:36:31 +02:00
<<: *RUN_TESTS
2022-07-21 18:40:42 +02:00
windows_x86_task:
# The task takes ~55 minutes while the timeout happens after 60 minutes by default,
# let's allow some wiggle room.
2022-09-13 23:58:09 +03:00
timeout_in: 120m
2022-07-21 18:40:42 +02:00
windows_container:
image: cirrusci/windowsservercore:visualstudio2022
cpu: 8
memory: 8G
install_pre_requirements_script:
2025-06-10 17:57:25 -04:00
- certutil -generateSSTFromWU roots.sst
- certutil -addstore -f root roots.sst
- del roots.sst
- choco install -y --no-progress python3 --version 3.12.4
2022-07-21 18:40:42 +02:00
- refreshenv
2025-06-10 17:57:25 -04:00
- powershell -Command "$cleanPath = $env:PATH -replace ';+$', ''; Add-Content -Path $env:CIRRUS_ENV -Value ('PATH=' + $cleanPath)"
2022-07-21 18:40:42 +02:00
<<: *RUN_TESTS
macos_arm64_task:
macos_instance:
2025-04-14 23:20:26 +02:00
image: ghcr.io/cirruslabs/macos-runner:sequoia
2022-07-21 18:40:42 +02:00
env:
VENV_ROOT: ${HOME}/venv-cibuildwheel
PATH: ${VENV_ROOT}/bin:${PATH}
2022-07-21 18:40:42 +02:00
install_pre_requirements_script:
- brew install python@3.12
- python3.12 -m venv ${VENV_ROOT}
2022-07-21 18:40:42 +02:00
<<: *RUN_TESTS
macos_arm64_cp38_task:
macos_instance:
2025-04-14 23:20:26 +02:00
image: ghcr.io/cirruslabs/macos-runner:sequoia
env:
VENV_ROOT: ${HOME}/venv-cibuildwheel
PATH: ${VENV_ROOT}/bin:${PATH}
2025-04-14 23:20:26 +02:00
PYTEST_ADDOPTS: --run-cp38-universal2 -k 'test_cp38_arm64_testing_universal2_installer or test_arch_auto or test_dummy_serial'
install_pre_requirements_script:
- brew install python@3.12
- python3.12 -m venv ${VENV_ROOT}
- curl -fsSLO https://www.python.org/ftp/python/3.8.10/python-3.8.10-macos11.pkg
- sudo installer -pkg python-3.8.10-macos11.pkg -target /
- rm python-3.8.10-macos11.pkg
- sh "/Applications/Python 3.8/Install Certificates.command"
<<: *RUN_TESTS