77 pool :
88 vmImage : ubuntu-20.04
99 steps :
10- # Run syntax validation using oldest and latest Python
11- - task : UsePythonVersion@0
12- displayName : Set up python
13- inputs :
14- versionSpec : 3.8
15-
16- - bash : python .azure-pipelines/syntax-validation.py
17- displayName : Syntax validation (3.7)
18-
19- - task : UsePythonVersion@0
20- displayName : Set up python
21- inputs :
22- versionSpec : 3.11
23-
24- - bash : python .azure-pipelines/syntax-validation.py
25- displayName : Syntax validation (3.10)
26-
27- - bash : |
28- set -eux
29- pip install --disable-pip-version-check ruff
30- python .azure-pipelines/ruff-validation.py
31- displayName: Ruff validation
32-
33- - bash : |
34- set -eux
35- # install versions matching the ones in the corresponding pre-commit hook
36- pip install --disable-pip-version-check mypy==1.9.0 types-PyYAML==6.0.12 types-requests==2.31.0
37- mypy --no-strict-optional dials_data/
38- displayName: Type checking
39-
4010 # Set up constants for further build steps
4111 - bash : |
4212 echo "##vso[task.setvariable variable=BUILD_REPOSITORY_NAME;isOutput=true]${BUILD_REPOSITORY_NAME}"
@@ -157,44 +127,47 @@ stages:
157127 vmImage : ubuntu-20.04
158128 strategy :
159129 matrix :
160- python38 :
161- PYTHON_VERSION : 3.8
162130 python39 :
163131 PYTHON_VERSION : 3.9
164132 python310 :
165133 PYTHON_VERSION : 3.10
166134 python311 :
167135 PYTHON_VERSION : 3.11
136+ python312 :
137+ PYTHON_VERSION : 3.12
138+
168139 steps :
169140 - template : ci.yml
170141 - job : macOS
171142 pool :
172143 vmImage : macOS-latest
173144 strategy :
174145 matrix :
175- python38 :
176- PYTHON_VERSION : 3.8
177146 python39 :
178147 PYTHON_VERSION : 3.9
179148 python310 :
180149 PYTHON_VERSION : 3.10
181150 python311 :
182151 PYTHON_VERSION : 3.11
152+ python312 :
153+ PYTHON_VERSION : 3.12
154+
183155 steps :
184156 - template : ci.yml
185157 - job : windows
186158 pool :
187159 vmImage : windows-latest
188160 strategy :
189161 matrix :
190- python38 :
191- PYTHON_VERSION : 3.8
192162 python39 :
193163 PYTHON_VERSION : 3.9
194164 python310 :
195165 PYTHON_VERSION : 3.10
196166 python311 :
197167 PYTHON_VERSION : 3.11
168+ python312 :
169+ PYTHON_VERSION : 3.12
170+
198171 steps :
199172 - template : ci-windows.yml
200173
@@ -205,7 +178,7 @@ stages:
205178 - tests
206179 condition : and(succeeded(),
207180 eq(dependencies.static.outputs['checks.constants.BUILD_REPOSITORY_NAME'], 'dials/data'),
208- eq(dependencies.static.outputs['checks.constants.BUILD_SOURCEBRANCH'], 'refs/heads/master '))
181+ eq(dependencies.static.outputs['checks.constants.BUILD_SOURCEBRANCH'], 'refs/heads/main '))
209182 jobs :
210183 - job : pypi
211184 displayName : Publish pypi release
@@ -247,7 +220,7 @@ stages:
247220 - build
248221 - tests
249222 condition : and(succeeded(),
250- eq(dependencies.static.outputs['checks.constants.BUILD_SOURCEBRANCH'], 'refs/heads/master '),
223+ eq(dependencies.static.outputs['checks.constants.BUILD_SOURCEBRANCH'], 'refs/heads/main '),
251224 eq(dependencies.static.outputs['checks.constants.BUILD_REPOSITORY_NAME'], 'dials/data'))
252225 # only run this job in the main branch of the main repository
253226 jobs :
0 commit comments