|
6 | 6 | trigger:
|
7 | 7 | - master
|
8 | 8 |
|
9 |
| -pool: |
10 |
| - vmImage: 'ubuntu-latest' |
11 |
| -strategy: |
12 |
| - matrix: |
13 |
| - Python36: |
14 |
| - python.version: '3.6' |
15 |
| - Python37: |
16 |
| - python.version: '3.7' |
17 |
| - Python38: |
18 |
| - python.version: '3.8' |
| 9 | +- job: Linux |
| 10 | + pool: |
| 11 | + vmImage: 'ubuntu-16.04' |
| 12 | + strategy: |
| 13 | + matrix: |
| 14 | + Python36: |
| 15 | + python.version: '3.6' |
| 16 | + Python37: |
| 17 | + python.version: '3.7' |
| 18 | + Python38: |
| 19 | + python.version: '3.8' |
19 | 20 |
|
20 |
| -steps: |
21 |
| -- task: UsePythonVersion@0 |
22 |
| - inputs: |
23 |
| - versionSpec: '$(python.version)' |
24 |
| - displayName: 'Use Python $(python.version)' |
| 21 | + steps: |
| 22 | + - task: UsePythonVersion@0 |
| 23 | + inputs: |
| 24 | + versionSpec: '$(python.version)' |
| 25 | + displayName: 'Use Python $(python.version)' |
25 | 26 |
|
26 |
| -- script: | |
27 |
| - python -m pip install --upgrade pip |
28 |
| - pip install -r requirements.txt |
29 |
| - displayName: 'Install dependencies' |
| 27 | + - script: | |
| 28 | + python -m pip install --upgrade pip |
| 29 | + pip install -r requirements.txt |
| 30 | + displayName: 'Install dependencies' |
30 | 31 |
|
31 |
| -- script: | |
32 |
| - pip install pytest pytest-azurepipelines |
33 |
| - pytest --verbose |
34 |
| - displayName: 'pytest' |
| 32 | + - script: | |
| 33 | + pip install pytest pytest-azurepipelines |
| 34 | + pytest --verbose |
| 35 | + displayName: 'pytest' |
| 36 | +
|
| 37 | +- job: LintFlake8 |
| 38 | + pool: |
| 39 | + vmImage: 'ubuntu-16.04' |
| 40 | + steps: |
| 41 | + - task: UsePythonVersion@0 |
| 42 | + - bash: python -m pip install flake8 |
| 43 | + displayName: Install flake8 |
| 44 | + - bash: flake8 |
| 45 | + displayName: flake8 lint checks |
| 46 | + |
| 47 | +- job: FormattingBlack |
| 48 | + pool: |
| 49 | + vmImage: 'ubuntu-16.04' |
| 50 | + steps: |
| 51 | + - task: UsePythonVersion@0 |
| 52 | + - bash: python -m pip install black |
| 53 | + displayName: Install black |
| 54 | + - bash: black --check . |
| 55 | + displayName: black formatting check |
0 commit comments