-
Notifications
You must be signed in to change notification settings - Fork 2
/
azure-coretest.yml
33 lines (28 loc) · 1.02 KB
/
azure-coretest.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
parameters:
pythons: []
platforms: []
jobs:
- ${{ each python in parameters.pythons }}:
- ${{ each platform in parameters.platforms }}:
- job: ${{ coalesce(python.value.name, python.key) }}_${{ coalesce(platform, 'linux') }}
variables:
${{ if eq(platform, 'linux') }}:
image: 'Ubuntu-latest'
${{ if eq(platform, 'windows') }}:
image: 'windows-latest'
${{ if eq(platform, 'macOs') }}:
image: 'macOS-latest'
${{ if notIn(platform, 'macOs', 'linux', 'windows') }}:
image: 'Ubuntu-latest'
pool:
vmImage: $[ variables.image ]
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: '${{ python.value.spec }}'
architecture: 'x64'
displayName: Use cached Python ${{ python.value.spec }} for tests.
- script: pip install -r requirements-ci.txt
displayName: Install CI requirements
- script: pytest
displayName: Run pytest (Python ${{ python.value.spec }})