-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathazure-pipelines.yml
50 lines (42 loc) · 1.19 KB
/
azure-pipelines.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
---
# yamllint disable-line rule:line-length
# Based on https://github.com/Azure-Samples/azure-pipelines-python/blob/master/.azure-pipelines/simple_package.1-multi-target.yml
# another ref. https://github.com/tox-dev/azure-pipelines-template
variables:
package: pre_commit_hooks_for_ansible
srcDirectory: src/
testsDirectory: tests/$(package)
trigger:
branches:
include:
- '*'
jobs:
- job: Build
strategy:
matrix:
python36:
pythonVersion: 3.6
python37:
pythonVersion: 3.7
python38:
pythonVersion: 3.8
python39:
pythonVersion: 3.9
pool:
vmImage: 'ubuntu-latest'
variables:
TOXENV: py${{ replace(variables['pythonVersion'], '.', '') }}
steps:
- task: UsePythonVersion@0
displayName: Use Python $(pythonVersion)
inputs:
versionSpec: $(pythonVersion)
- script: |
sudo apt-get update
sudo apt-get install -y graphviz
python -m pip install --upgrade pip
pip install tox tox-gh-actions
displayName: Install some more test time dependencies
- bash: tox
displayName: Run tests
# vim:sw=2:ts=2:et: