Files
cibuildwheel/.cirrus.yml
T

75 lines
2.1 KiB
YAML
Raw Normal View History

2024-03-11 20:54:37 +00:00
only_if: changesInclude('.cirrus.yml') || ($CIRRUS_BRANCH == "main" && !changesIncludeOnly('docs/*', '.pre-commit-config.yaml')) || $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:
- python -m pip install -e ".[dev]" pytest-custom-exit-code
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
install_pre_requirements_script:
- apt install -y python3-venv python-is-python3
<<: *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
install_pre_requirements_script:
- apt install -y python3-venv python-is-python3
<<: *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:
- choco install -y --no-progress python3 --version 3.10.6
- refreshenv
- echo PATH=%PATH% >> "%CIRRUS_ENV%"
<<: *RUN_TESTS
macos_arm64_task:
macos_instance:
2024-03-11 20:54:37 +00:00
image: ghcr.io/cirruslabs/macos-sonoma-xcode
2022-07-21 18:40:42 +02:00
env:
2024-03-11 20:54:37 +00:00
PATH: /opt/homebrew/opt/python@3.10/libexec/bin:$PATH
2022-07-21 18:40:42 +02:00
install_pre_requirements_script:
- brew install python@3.10
<<: *RUN_TESTS
macos_arm64_cp38_task:
macos_instance:
2024-03-11 20:54:37 +00:00
image: ghcr.io/cirruslabs/macos-sonoma-xcode
env:
2024-03-11 20:54:37 +00:00
PATH: /opt/homebrew/opt/python@3.10/libexec/bin:$PATH
PYTEST_ADDOPTS: --run-cp38-universal2 -k 'test_cp38_arm64_testing_universal2_installer or test_arch_auto'
install_pre_requirements_script:
- brew install python@3.10
- 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