* 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
58 lines
1.8 KiB
YAML
58 lines
1.8 KiB
YAML
linux:
|
|
image: python:3.12
|
|
services:
|
|
- name: docker:dind
|
|
entrypoint: ["env", "-u", "DOCKER_HOST"]
|
|
command: ["dockerd-entrypoint.sh"]
|
|
variables:
|
|
DOCKER_HOST: tcp://docker:2375/
|
|
DOCKER_DRIVER: overlay2
|
|
# See https://github.com/docker-library/docker/pull/166
|
|
DOCKER_TLS_CERTDIR: ""
|
|
|
|
# skip all but the basic tests
|
|
# (comment the below line in a PR to debug a Gitlab-specific issue)
|
|
PYTEST_ADDOPTS: -k "unit_test or test_0_basic" --suppress-no-test-exit-code
|
|
rules:
|
|
- if: '$CI_COMMIT_BRANCH == "main"'
|
|
variables:
|
|
CIBW_ENABLE: "all"
|
|
script:
|
|
- curl -sSL https://get.docker.com/ | sh
|
|
- docker run --rm --privileged docker.io/tonistiigi/binfmt:latest --install all
|
|
- python -m pip install dependency-groups
|
|
- python -m dependency_groups test | xargs python -m pip install -e. pytest-custom-exit-code
|
|
- python ./bin/run_tests.py
|
|
|
|
windows:
|
|
image: mcr.microsoft.com/windows/servercore:1809
|
|
variables:
|
|
PYTEST_ADDOPTS: -k "unit_test or test_0_basic" --suppress-no-test-exit-code
|
|
before_script:
|
|
- choco install python -y --version 3.12.4
|
|
rules:
|
|
- if: '$CI_COMMIT_BRANCH == "main"'
|
|
variables:
|
|
CIBW_ENABLE: "all"
|
|
script:
|
|
- py -m pip install dependency-groups
|
|
- py -m pip install -e. pytest-custom-exit-code $(py -m dependency_groups test)
|
|
- py bin\run_tests.py
|
|
tags:
|
|
- saas-windows-medium-amd64
|
|
|
|
macos:
|
|
image: macos-14-xcode-15
|
|
variables:
|
|
PYTEST_ADDOPTS: -k "unit_test or test_0_basic" --suppress-no-test-exit-code
|
|
rules:
|
|
- if: '$CI_COMMIT_BRANCH == "main"'
|
|
variables:
|
|
CIBW_ENABLE: "all"
|
|
script:
|
|
- python3 -m pip install dependency-groups
|
|
- python3 -m dependency_groups test | xargs python3 -m pip install -e. pytest-custom-exit-code
|
|
- python3 ./bin/run_tests.py
|
|
tags:
|
|
- saas-macos-medium-m1
|