Skip to content

Commit a5e5167

Browse files
committed
Run tests on prereleases of Python on Windows. Fixes jaraco/skeleton#17.
1 parent 70c5062 commit a5e5167

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

azure-pipelines.yml

+15-1
Original file line numberDiff line numberDiff line change
@@ -29,20 +29,34 @@ stages:
2929
python.version: '3.6'
3030
Bionic Python 3.8:
3131
python.version: '3.8'
32-
Windows:
32+
Windows Python 3.8:
3333
python.version: '3.8'
3434
pool_vm_image: vs2017-win2016
35+
Windows Python Prerelease:
36+
python.version: '3.9'
37+
pool_vm_image: vs2017-win2016
3538
MacOS:
3639
python.version: '3.8'
3740
pool_vm_image: macos-10.15
3841

3942
maxParallel: 4
4043

4144
steps:
45+
- task: NuGetToolInstaller@1
46+
displayName: 'Install NuGet'
47+
condition: eq(variables['pool_vm_image'], 'vs2017-win2016')
48+
49+
- powershell: |
50+
nuget install python -Prerelease -OutputDirectory "$(Build.BinariesDirectory)" -ExcludeVersion -NonInteractive
51+
Write-Host "##vso[task.prependpath]$(Build.BinariesDirectory)\python\tools"
52+
Write-Host "##vso[task.prependpath]$(Build.BinariesDirectory)\python\tools\Scripts"
53+
condition: and(succeeded(), and(eq(variables['python.version'], '3.9'), eq(variables['pool_vm_image'], 'vs2017-win2016')))
54+
4255
- task: UsePythonVersion@0
4356
inputs:
4457
versionSpec: '$(python.version)'
4558
architecture: 'x64'
59+
condition: and(succeeded(), ne(variables['python.version'], '3.9'))
4660

4761
- script: python -m pip install tox
4862
displayName: 'Install tox'

0 commit comments

Comments
 (0)