#917 - Added Windows and MacOS to build pipeline. Updated so that runs only Python 3.8 and 3.10 (middle version not required)

This commit is contained in:
Chris McCarthy
2023-07-03 12:03:36 +01:00
parent 123ec8343c
commit c3ec33e4df

View File

@@ -6,16 +6,29 @@ trigger:
- bugfix/* - bugfix/*
- release/* - release/*
pool:
vmImage: ubuntu-latest
strategy: strategy:
matrix: matrix:
Python38: UbuntuPython38:
python.version: '3.8' python.version: '3.8'
Python39: imageName: 'ubuntu-latest'
python.version: '3.9' UbuntuPython310:
Python310:
python.version: '3.10' 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: steps:
- task: UsePythonVersion@0 - task: UsePythonVersion@0
@@ -50,11 +63,6 @@ steps:
primaite setup primaite setup
displayName: 'Perform 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: | - script: |
pytest tests/ pytest tests/
displayName: 'Run tests' displayName: 'Run tests'