#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/*
- 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'