Changed structure of build pipeline yaml
This commit is contained in:
@@ -14,36 +14,38 @@ parameters:
|
|||||||
- job_name: 'UbuntuPython38'
|
- job_name: 'UbuntuPython38'
|
||||||
py: '3.8'
|
py: '3.8'
|
||||||
img: 'ubuntu-latest'
|
img: 'ubuntu-latest'
|
||||||
only_pr: false
|
every_time: false
|
||||||
- job_name: 'UbuntuPython310'
|
- job_name: 'UbuntuPython310'
|
||||||
py: '3.10'
|
py: '3.10'
|
||||||
img: 'ubuntu-latest'
|
img: 'ubuntu-latest'
|
||||||
only_pr: true
|
every_time: true
|
||||||
- job_name: 'WindowsPython38'
|
- job_name: 'WindowsPython38'
|
||||||
py: '3.8'
|
py: '3.8'
|
||||||
img: 'windows-latest'
|
img: 'windows-latest'
|
||||||
only_pr: false
|
every_time: false
|
||||||
- job_name: 'WindowsPython310'
|
- job_name: 'WindowsPython310'
|
||||||
py: '3.10'
|
py: '3.10'
|
||||||
img: 'windows-latest'
|
img: 'windows-latest'
|
||||||
only_pr: false
|
every_time: false
|
||||||
- job_name: 'MacOSPython38'
|
- job_name: 'MacOSPython38'
|
||||||
py: '3.8'
|
py: '3.8'
|
||||||
img: 'macOS-latest'
|
img: 'macOS-latest'
|
||||||
only_pr: false
|
every_time: false
|
||||||
- job_name: 'MacOSPython310'
|
- job_name: 'MacOSPython310'
|
||||||
py: '3.10'
|
py: '3.10'
|
||||||
img: 'macOS-latest'
|
img: 'macOS-latest'
|
||||||
only_pr: false
|
every_time: false
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
- stage: Test
|
- stage: Test
|
||||||
jobs:
|
jobs:
|
||||||
- ${{ each item in parameters.matrix }}:
|
- ${{ each item in parameters.matrix }}:
|
||||||
${{ if or(eq(variables['Build.Reason'], 'PullRequest'), item.only_pr) }}:
|
|
||||||
- job: ${{ item.job_name }}
|
- job: ${{ item.job_name }}
|
||||||
pool:
|
pool:
|
||||||
vmImage: ${{ item.img }}
|
vmImage: ${{ item.img }}
|
||||||
|
|
||||||
|
condition: or( eq(variables['BuildReason'], 'PullRequest'), item.every_time )
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- task: UsePythonVersion@0
|
- task: UsePythonVersion@0
|
||||||
inputs:
|
inputs:
|
||||||
|
|||||||
Reference in New Issue
Block a user