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