2025-05-08 12:27:05 +01:00
|
|
|
version: 2.1
|
|
|
|
|
|
|
|
|
|
commands:
|
|
|
|
|
cibw_prepare_environment:
|
|
|
|
|
description: "Prepare the environment for testing."
|
|
|
|
|
steps:
|
|
|
|
|
- run:
|
|
|
|
|
name: Prepare the environment.
|
|
|
|
|
command: bash .circleci/prepare.sh
|
|
|
|
|
cibw_run_tests:
|
|
|
|
|
description: "Runs tests, with CIBW_ENABLE=all on the main branch"
|
|
|
|
|
steps:
|
|
|
|
|
- run:
|
|
|
|
|
name: Test
|
|
|
|
|
command: |
|
|
|
|
|
if [ "${CIRCLE_BRANCH}" == "main" ]; then
|
|
|
|
|
echo "INFO: Exporting CIBW_ENABLE=all for main branch test run."
|
|
|
|
|
export CIBW_ENABLE=all
|
|
|
|
|
else
|
|
|
|
|
echo "INFO: CIBW_ENABLE not set for this branch test run."
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
venv/bin/python ./bin/run_tests.py
|
|
|
|
|
no_output_timeout: 30m
|
2018-09-05 04:15:32 -04:00
|
|
|
|
|
|
|
|
jobs:
|
2025-05-08 12:27:05 +01:00
|
|
|
osx-python312:
|
2018-09-05 04:15:32 -04:00
|
|
|
macos:
|
2024-06-29 20:12:13 +02:00
|
|
|
xcode: 15.4.0
|
|
|
|
|
resource_class: macos.m1.medium.gen1
|
2018-09-05 04:15:32 -04:00
|
|
|
environment:
|
2020-02-03 15:31:51 +01:00
|
|
|
PYTHON: python3
|
2018-09-05 04:15:32 -04:00
|
|
|
steps:
|
|
|
|
|
- checkout
|
2025-05-08 12:27:05 +01:00
|
|
|
- cibw_prepare_environment
|
|
|
|
|
- cibw_run_tests
|
2018-09-05 04:15:32 -04:00
|
|
|
|
2025-05-08 12:27:05 +01:00
|
|
|
linux-python312:
|
2018-09-05 04:15:32 -04:00
|
|
|
docker:
|
2024-06-29 20:12:13 +02:00
|
|
|
- image: cimg/python:3.12
|
2018-09-05 04:15:32 -04:00
|
|
|
environment:
|
|
|
|
|
PYTHON: python3
|
2021-11-20 13:23:15 +00:00
|
|
|
# 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"
|
2018-09-05 04:15:32 -04:00
|
|
|
steps:
|
|
|
|
|
- checkout
|
|
|
|
|
- setup_remote_docker
|
2025-05-08 12:27:05 +01:00
|
|
|
- cibw_prepare_environment
|
|
|
|
|
- cibw_run_tests
|
2018-09-05 04:15:32 -04:00
|
|
|
|
2022-10-12 13:43:05 +02:00
|
|
|
linux-aarch64:
|
|
|
|
|
machine:
|
2024-02-29 22:25:28 +01:00
|
|
|
image: default
|
2022-10-12 13:43:05 +02:00
|
|
|
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
|
2025-05-08 12:27:05 +01:00
|
|
|
- cibw_prepare_environment
|
|
|
|
|
- cibw_run_tests
|
2022-10-12 13:43:05 +02:00
|
|
|
|
2018-09-05 04:15:32 -04:00
|
|
|
workflows:
|
|
|
|
|
version: 2
|
|
|
|
|
all-tests:
|
|
|
|
|
jobs:
|
2025-05-08 12:27:05 +01:00
|
|
|
- osx-python312
|
|
|
|
|
- linux-python312
|
2022-10-12 13:43:05 +02:00
|
|
|
- linux-aarch64
|