* Allow CIBW_ENABLE to control the wheels built in testing * Set CIBW_ENABLE using PR labels * Add docs * Build everything on the main branch * Add CIBW_ENABLE=all option This was mostly for use in the `main` building case, because otherwise it's maybe a bit too easy to forget to update this file when adding an enable group * Remove dead code * Make unit tests robust to the value of CIBW_ENABLE * Fix tests that explicitly choose pypy * Fix test expectation * Don't expect impossible wheels in expected_wheels * Simplify logic in expected_wheels * CircleCI- run with CIBW_ENABLE=all only on the main branch * Azure pipelines - run with CIBW_ENABLE=all on main branch * Update gitlab to run CIBW_ENABLE=all on main * Set CIBW_ENABLE=all on travis - it only runs on main anyway * Fix job name error on CircleCI * Fix tests for graalpy * Update the test configuration to use the label * Remove duplication of default value. Make it affect sample build too * Move the action to after deps are installed * GraalPy workaround for this assumption * Make unit test resilient to changing CIBW_ENABLE
73 lines
1.8 KiB
YAML
73 lines
1.8 KiB
YAML
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
|
|
|
|
jobs:
|
|
osx-python312:
|
|
macos:
|
|
xcode: 15.4.0
|
|
resource_class: macos.m1.medium.gen1
|
|
environment:
|
|
PYTHON: python3
|
|
steps:
|
|
- checkout
|
|
- cibw_prepare_environment
|
|
- cibw_run_tests
|
|
|
|
linux-python312:
|
|
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
|
|
- cibw_prepare_environment
|
|
- cibw_run_tests
|
|
|
|
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
|
|
- cibw_prepare_environment
|
|
- cibw_run_tests
|
|
|
|
workflows:
|
|
version: 2
|
|
all-tests:
|
|
jobs:
|
|
- osx-python312
|
|
- linux-python312
|
|
- linux-aarch64
|