From 9999ed9b0041a484021ea8dfdef3355a6c6ba777 Mon Sep 17 00:00:00 2001 From: Chris McCarthy Date: Mon, 3 Jul 2023 12:03:36 +0100 Subject: [PATCH] #917 - Added Windows and MacOS to build pipeline. Updated so that runs only Python 3.8 and 3.10 (middle version not required) --- .azure/azure-ci-build-pipeline.yaml | 30 ++++++++++++++++++----------- 1 file changed, 19 insertions(+), 11 deletions(-) diff --git a/.azure/azure-ci-build-pipeline.yaml b/.azure/azure-ci-build-pipeline.yaml index 4c15daf5..a93aa131 100644 --- a/.azure/azure-ci-build-pipeline.yaml +++ b/.azure/azure-ci-build-pipeline.yaml @@ -6,16 +6,29 @@ trigger: - bugfix/* - release/* -pool: - vmImage: ubuntu-latest strategy: matrix: - Python38: + UbuntuPython38: python.version: '3.8' - Python39: - python.version: '3.9' - Python310: + imageName: 'ubuntu-latest' + UbuntuPython310: python.version: '3.10' + imageName: 'ubuntu-latest' + WindowsPython38: + python.version: '3.8' + imageName: 'windows-latest' + WindowsPython310: + python.version: '3.10' + imageName: 'windows-latest' + MacOSPython38: + python.version: '3.8' + imageName: 'macOS-latest' + MacOSPython310: + python.version: '3.10' + imageName: 'macOS-latest' + +pool: + vmImage: $(imageName) steps: - task: UsePythonVersion@0 @@ -50,11 +63,6 @@ steps: primaite setup displayName: 'Perform PrimAITE Setup' -#- script: | -# flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics -# flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics -# displayName: 'Lint with flake8' - - script: | pytest tests/ displayName: 'Run tests'