2023-07-09 15:59:27 +01:00
|
|
|
pr:
|
|
|
|
|
paths:
|
|
|
|
|
exclude:
|
|
|
|
|
- docs/*
|
2023-07-10 11:34:10 +01:00
|
|
|
- .pre-commit-config.yaml
|
2023-07-09 15:59:27 +01:00
|
|
|
|
2019-03-10 22:50:07 +00:00
|
|
|
jobs:
|
2025-01-16 16:45:18 +01:00
|
|
|
- job: linux_311
|
2025-04-29 00:25:17 +02:00
|
|
|
timeoutInMinutes: 180
|
2025-04-09 09:58:57 -04:00
|
|
|
pool: {vmImage: 'Ubuntu-22.04'}
|
2019-10-26 01:09:19 +02:00
|
|
|
steps:
|
2019-03-10 22:50:07 +00:00
|
|
|
- task: UsePythonVersion@0
|
2019-11-09 11:19:02 +01:00
|
|
|
inputs:
|
2025-01-16 16:45:18 +01:00
|
|
|
versionSpec: '3.11'
|
2019-03-10 22:50:07 +00:00
|
|
|
- bash: |
|
2024-09-12 21:32:43 +02:00
|
|
|
docker run --rm --privileged docker.io/tonistiigi/binfmt:latest --install all
|
2024-11-19 13:30:06 -05:00
|
|
|
python -m pip install dependency-groups
|
|
|
|
|
python -m dependency_groups test | xargs python -m pip install -e.
|
2025-05-08 12:27:05 +01:00
|
|
|
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
|
|
|
|
|
|
2025-01-16 16:45:18 +01:00
|
|
|
- job: macos_311
|
2024-11-28 07:52:14 +01:00
|
|
|
pool: {vmImage: 'macOS-13'}
|
2025-04-29 00:25:17 +02:00
|
|
|
timeoutInMinutes: 120
|
2019-10-26 01:09:19 +02:00
|
|
|
steps:
|
2019-03-10 22:50:07 +00:00
|
|
|
- task: UsePythonVersion@0
|
2019-11-09 11:19:02 +01:00
|
|
|
inputs:
|
2025-01-16 16:45:18 +01:00
|
|
|
versionSpec: '3.11'
|
2019-03-10 22:50:07 +00:00
|
|
|
- bash: |
|
2024-11-19 13:30:06 -05:00
|
|
|
python -m pip install dependency-groups
|
|
|
|
|
python -m dependency_groups test | xargs python -m pip install -e.
|
2025-05-08 12:27:05 +01:00
|
|
|
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
|
2025-04-09 09:58:57 -04:00
|
|
|
python ./bin/run_tests.py
|
2019-03-10 22:50:07 +00:00
|
|
|
|
2025-01-16 16:45:18 +01:00
|
|
|
- job: windows_311
|
2022-02-22 14:26:51 -08:00
|
|
|
pool: {vmImage: 'windows-2019'}
|
2020-07-21 23:13:55 +02:00
|
|
|
timeoutInMinutes: 180
|
2019-10-26 01:09:19 +02:00
|
|
|
steps:
|
|
|
|
|
- task: UsePythonVersion@0
|
2019-11-09 11:19:02 +01:00
|
|
|
inputs:
|
2025-01-16 16:45:18 +01:00
|
|
|
versionSpec: '3.11'
|
2019-03-10 22:50:07 +00:00
|
|
|
- bash: |
|
2024-11-19 13:30:06 -05:00
|
|
|
python -m pip install dependency-groups
|
|
|
|
|
python -m dependency_groups test | xargs python -m pip install -e.
|
2025-05-08 12:27:05 +01:00
|
|
|
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
|