Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
120 changes: 60 additions & 60 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,67 +1,67 @@
version: 2
# version: 2

jobs:
osx-python3.12:
macos:
xcode: 15.4.0
resource_class: macos.m1.medium.gen1
environment:
PYTHON: python3
steps:
- checkout
# jobs:
# osx-python3.12:
# macos:
# xcode: 15.4.0
# resource_class: macos.m1.medium.gen1
# environment:
# PYTHON: python3
# steps:
# - checkout

- run:
name: Prepare the environment.
command: bash .circleci/prepare.sh
- run:
name: Test.
command: venv/bin/python ./bin/run_tests.py
no_output_timeout: 30m
# - run:
# name: Prepare the environment.
# command: bash .circleci/prepare.sh
# - run:
# name: Test.
# command: venv/bin/python ./bin/run_tests.py
# no_output_timeout: 30m

linux-python3.12:
docker:
- image: cimg/python:3.12
environment:
PYTHON: python3
# Temporarily restrict the tests that are run on CircleCI to prevent
# test timeouts.
PYTEST_ADDOPTS: -k "unit_test or main_tests or test_0_basic or test_docker_images"
steps:
- checkout
- setup_remote_docker
# # linux-python3.12:
# # docker:
# # - image: cimg/python:3.12
# # environment:
# # PYTHON: python3
# # # Temporarily restrict the tests that are run on CircleCI to prevent
# # # test timeouts.
# # PYTEST_ADDOPTS: -k "unit_test or main_tests or test_0_basic or test_docker_images"
# # steps:
# # - checkout
# # - setup_remote_docker

- run:
name: Prepare the environment.
command: bash .circleci/prepare.sh
- run:
name: Test.
command: venv/bin/python ./bin/run_tests.py
no_output_timeout: 30m
# # - run:
# # name: Prepare the environment.
# # command: bash .circleci/prepare.sh
# # - run:
# # name: Test.
# # command: venv/bin/python ./bin/run_tests.py
# # no_output_timeout: 30m

linux-aarch64:
machine:
image: default
resource_class: arm.medium
environment:
PYTHON: python3
# Temporarily restrict the tests that are run on CircleCI to prevent
# test timeouts.
PYTEST_ADDOPTS: -k "unit_test or main_tests or test_0_basic or test_docker_images"
steps:
- checkout
# # linux-aarch64:
# # machine:
# # image: default
# # resource_class: arm.medium
# # environment:
# # PYTHON: python3
# # # Temporarily restrict the tests that are run on CircleCI to prevent
# # # test timeouts.
# # PYTEST_ADDOPTS: -k "unit_test or main_tests or test_0_basic or test_docker_images"
# # steps:
# # - checkout

- run:
name: Prepare the environment.
command: bash .circleci/prepare.sh
- run:
name: Test.
command: venv/bin/python ./bin/run_tests.py
no_output_timeout: 30m
# # - run:
# # name: Prepare the environment.
# # command: bash .circleci/prepare.sh
# # - run:
# # name: Test.
# # command: venv/bin/python ./bin/run_tests.py
# # no_output_timeout: 30m

workflows:
version: 2
all-tests:
jobs:
- osx-python3.12
- linux-python3.12
- linux-aarch64
# workflows:
# version: 2
# all-tests:
# jobs:
# - osx-python3.12
# # - linux-python3.12
# # - linux-aarch64
148 changes: 74 additions & 74 deletions .cirrus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,82 +7,82 @@ run_tests: &RUN_TESTS
run_cibuildwheel_tests_script:
- python ./bin/run_tests.py

linux_x86_task:
timeout_in: 120m
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}
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}
<<: *RUN_TESTS
# linux_x86_task:
# timeout_in: 120m
# 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}
# 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}
# <<: *RUN_TESTS

linux_aarch64_task:
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}
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}
<<: *RUN_TESTS
# linux_aarch64_task:
# 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}
# 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}
# <<: *RUN_TESTS

windows_x86_task:
# The task takes ~55 minutes while the timeout happens
# after 60 minutes by default, let's allow some wiggle room.
timeout_in: 120m
windows_container:
image: cirrusci/windowsservercore:visualstudio2022
cpu: 8
memory: 8G
# windows_x86_task:
# # The task takes ~55 minutes while the timeout happens
# # after 60 minutes by default, let's allow some wiggle room.
# timeout_in: 120m
# windows_container:
# image: cirrusci/windowsservercore:visualstudio2022
# cpu: 8
# memory: 8G

install_pre_requirements_script:
- choco install -y --no-progress python3 --version 3.12.4
- refreshenv
- echo PATH=%PATH% >> "%CIRRUS_ENV%"
<<: *RUN_TESTS
# install_pre_requirements_script:
# - choco install -y --no-progress python3 --version 3.12.4
# - refreshenv
# - echo PATH=%PATH% >> "%CIRRUS_ENV%"
# <<: *RUN_TESTS

macos_arm64_task:
macos_instance:
image: ghcr.io/cirruslabs/macos-runner:sonoma
env:
VENV_ROOT: ${HOME}/venv-cibuildwheel
PATH: ${VENV_ROOT}/bin:${PATH}
install_pre_requirements_script:
- brew install [email protected]
- python3.12 -m venv ${VENV_ROOT}
<<: *RUN_TESTS
# macos_arm64_task:
# macos_instance:
# image: ghcr.io/cirruslabs/macos-runner:sonoma
# env:
# VENV_ROOT: ${HOME}/venv-cibuildwheel
# PATH: ${VENV_ROOT}/bin:${PATH}
# install_pre_requirements_script:
# - brew install [email protected]
# - python3.12 -m venv ${VENV_ROOT}
# <<: *RUN_TESTS

macos_arm64_cp38_task:
macos_instance:
image: ghcr.io/cirruslabs/macos-runner:sonoma
env:
VENV_ROOT: ${HOME}/venv-cibuildwheel
PATH: ${VENV_ROOT}/bin:${PATH}
PYTEST_ADDOPTS: --run-cp38-universal2 -k 'test_cp38_arm64_testing_universal2_installer or test_arch_auto'
install_pre_requirements_script:
- brew install [email protected]
- 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
# macos_arm64_cp38_task:
# macos_instance:
# image: ghcr.io/cirruslabs/macos-runner:sonoma
# env:
# VENV_ROOT: ${HOME}/venv-cibuildwheel
# PATH: ${VENV_ROOT}/bin:${PATH}
# PYTEST_ADDOPTS: --run-cp38-universal2 -k 'test_cp38_arm64_testing_universal2_installer or test_arch_auto'
# install_pre_requirements_script:
# - brew install [email protected]
# - 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
Loading
Loading