Files
cibuildwheel/azure-pipelines.yml
T

78 lines
2.2 KiB
YAML
Raw Normal View History

2023-07-09 15:59:27 +01:00
pr:
paths:
exclude:
2025-06-10 17:57:25 -04:00
- .github/**
- bin/*
- docs/**
- examples/github-*
- examples/ci*
- examples/travis-ci-*
- .ci*
- .pre-commit-config.yaml
2025-06-10 17:57:25 -04:00
- .readthedocs.yml
- .travis.yml
- README.md
- mkdocs.yml
- noxfile.py
2023-07-09 15:59:27 +01:00
2019-03-10 22:50:07 +00:00
jobs:
- job: linux_311
2025-04-29 00:25:17 +02:00
timeoutInMinutes: 180
pool: {vmImage: 'ubuntu-latest'}
steps:
2019-03-10 22:50:07 +00:00
- task: UsePythonVersion@0
2019-11-09 11:19:02 +01:00
inputs:
versionSpec: '3.11'
- task: JavaToolInstaller@0
inputs:
versionSpec: '17'
jdkArchitectureOption: 'x64'
jdkSourceOption: 'PreInstalled'
2019-03-10 22:50:07 +00:00
- bash: |
docker run --rm --privileged docker.io/tonistiigi/binfmt:latest --install all
2025-06-11 03:56:12 -04:00
python -m pip install -U pip
python -m pip install -e. --group test
if [ "$(Build.SourceBranch)" = "refs/heads/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 ($(Build.SourceBranch))."
fi
2019-03-10 22:50:07 +00:00
python ./bin/run_tests.py
- job: macos_311
pool: {vmImage: 'macOS-latest'}
2025-04-29 00:25:17 +02:00
timeoutInMinutes: 120
steps:
2019-03-10 22:50:07 +00:00
- task: UsePythonVersion@0
2019-11-09 11:19:02 +01:00
inputs:
versionSpec: '3.11'
2019-03-10 22:50:07 +00:00
- bash: |
2025-06-11 03:56:12 -04:00
python -m pip install -U pip
python -m pip install -e. --group test
if [ "$(Build.SourceBranch)" = "refs/heads/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 ($(Build.SourceBranch))."
fi
python ./bin/run_tests.py
2019-03-10 22:50:07 +00:00
- job: windows_311
pool: {vmImage: 'windows-latest'}
timeoutInMinutes: 180
steps:
- task: UsePythonVersion@0
2019-11-09 11:19:02 +01:00
inputs:
versionSpec: '3.11'
2019-03-10 22:50:07 +00:00
- bash: |
2025-06-11 03:56:12 -04:00
python -m pip install -U pip
python -m pip install -e. --group test
if [ "$(Build.SourceBranch)" = "refs/heads/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 ($(Build.SourceBranch))."
fi
2019-03-10 22:50:07 +00:00
python ./bin/run_tests.py