-
Notifications
You must be signed in to change notification settings - Fork 759
/
azure-pipelines.yml
106 lines (88 loc) · 2.28 KB
/
azure-pipelines.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
# https://docs.microsoft.com/azure/devops/pipelines/languages/python
# https://docs.microsoft.com/en-us/azure/devops/pipelines/languages/docker
trigger:
- master
pr:
autoCancel: true
# PRs into ...
branches:
include:
- master
schedules:
- cron: "0 0 * * *"
displayName: 'daily build'
branches:
include:
- master
always: true
jobs:
- job: 'Docker'
strategy:
matrix:
ROS-noetic:
dockerfile: 'Dockerfile.rosnoetic'
imageName: 'ubuntu-latest'
ROS-jazzy:
dockerfile: 'Dockerfile.ros-jazzy'
imageName: 'ubuntu-latest'
pool:
vmImage: $(imageName)
steps:
# Currently only for testing, so no tagging needed.
- script: docker build . --file $(dockerfile) || exit 1
displayName: 'docker build'
- job: 'Test'
strategy:
matrix:
Python-3.8-ubuntu:
python.version: '3.8'
imageName: 'ubuntu-latest'
Python-3.12-ubuntu:
python.version: '3.12'
imageName: 'ubuntu-latest'
Python-3.12-mac:
python.version: '3.12'
imageName: 'macOS-latest'
Python-3.12-windows:
python.version: '3.12'
imageName: 'windows-latest'
maxParallel: 10
pool:
vmImage: $(imageName)
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: '$(python.version)'
architecture: 'x64'
- script: |
python -m pip install --upgrade pip
pip install .
evo_config show --brief --no_color
displayName: 'Install and configure package and dependencies'
- script: |
pip install mypy types-PyYAML
mypy --ignore-missing-imports evo/ test/ contrib/ doc/ --exclude test/tum_benchmark_tools/
displayName: 'mypy'
- script: |
pip install pytest
pytest -sv --junitxml=junit/test-results.xml
displayName: 'pytest'
- task: PublishTestResults@2
inputs:
testResultsFiles: '**/test-results.xml'
testRunTitle: 'Python $(python.version)'
condition: succeededOrFailed()
- job: 'Publish'
dependsOn: 'Test'
pool:
vmImage: 'ubuntu-latest'
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: '3.x'
architecture: 'x64'
- script: |
pip install hatch
hatch build
displayName: 'Build sdist and wheel'
# Currently, that's it. No actual deployment.