Skip to content

Commit

Permalink
Run tests on prereleases of Python on Windows. Fixes #17.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed May 23, 2020
1 parent 172c52b commit c764baf
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,20 +29,34 @@ stages:
python.version: '3.6'
Bionic Python 3.8:
python.version: '3.8'
Windows:
Windows Python 3.8:
python.version: '3.8'
pool_vm_image: vs2017-win2016
Windows Python Prerelease:
python.version: '3.9'
pool_vm_image: vs2017-win2016
MacOS:
python.version: '3.8'
pool_vm_image: macos-10.15

maxParallel: 4

steps:
- task: NuGetToolInstaller@1
displayName: 'Install NuGet'
condition: eq(variables['pool_vm_image'], 'vs2017-win2016')

- powershell: |
nuget install python -Prerelease -OutputDirectory "$(Build.BinariesDirectory)" -ExcludeVersion -NonInteractive
Write-Host "##vso[task.prependpath]$(Build.BinariesDirectory)\python\tools"
Write-Host "##vso[task.prependpath]$(Build.BinariesDirectory)\python\tools\Scripts"
condition: and(succeeded(), and(eq(variables['python.version'], '3.9'), eq(variables['pool_vm_image'], 'vs2017-win2016')))
- task: UsePythonVersion@0
inputs:
versionSpec: '$(python.version)'
architecture: 'x64'
condition: and(succeeded(), ne(variables['python.version'], '3.9'))

- script: python -m pip install tox
displayName: 'Install tox'
Expand Down

0 comments on commit c764baf

Please sign in to comment.