From efe66bc5bc7c00a01a3e472f97308d600ac01de5 Mon Sep 17 00:00:00 2001 From: Jean-Christophe Fillion-Robin Date: Wed, 15 May 2019 16:57:21 -0400 Subject: [PATCH] azure-pipeline: Test with Python 3.5 and 3.6 Adapted from https://github.com/Microsoft/azure-pipelines-yaml/issues/20#issuecomment-491349961 --- azure-pipelines.yml | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 666e63c..f20b518 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -3,6 +3,10 @@ trigger: include: - master +parameters: + pythonVersions: ['3.7', '3.6', '3.5'], + operatingSystems: ['ubuntu-16.04', 'macos-10.13', 'vs2017-win2016'] + jobs: - job: 'Test' @@ -10,12 +14,11 @@ jobs: strategy: matrix: - Linux: - imageName: 'ubuntu-16.04' - macOS: - imageName: 'macos-10.13' - Windows: - imageName: 'vs2017-win2016' + ${{ each py in parameters.pythonVersions }}: + ${{ each os in parameters.operatingSystems }}: + ${{ format('{0}{1}', py, os) }}: + imageName: ${{ image }} + pythonVersion: ${{ py }} pool: vmImage: $(imageName) @@ -24,7 +27,7 @@ jobs: - task: UsePythonVersion@0 inputs: - versionSpec: '3.7' + versionSpec: '$(pythonVersion)' architecture: 'x64' - script: |