-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathazure-pipelines.yml
More file actions
54 lines (41 loc) · 1.08 KB
/
azure-pipelines.yml
File metadata and controls
54 lines (41 loc) · 1.08 KB
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
variables:
isMaster: $[eq(variables['Build.SourceBranch'], 'refs/heads/master')]
# specific branch build
trigger:
branches:
include:
- master
- develop
jobs:
- job: tests
displayName: Tests
workspace:
clean: all
pool:
vmImage: ubuntu-latest
strategy:
matrix:
py310:
python.version: '3.10'
tox.env: py310
py311:
python.version: '3.11'
tox.env: py311
py312:
python.version: '3.12'
tox.env: py312
steps:
- task: UsePythonVersion@0
displayName: Get Python for Python tools.
inputs:
versionSpec: '$(python.version)'
addToPath: false
name: Python
- script: $(Python.pythonLocation)/bin/pip install poetry
displayName: Install Python-based tools.
- task: UsePythonVersion@0
inputs:
versionSpec: '$(python.version)'
displayName: Use Python $(python.version) for tests.
- script: $(Python.pythonLocation)/bin/poetry run pytest .'
displayName: tests