|
4 | 4 | # https://docs.microsoft.com/azure/devops/pipelines/languages/python |
5 | 5 |
|
6 | 6 | jobs: |
7 | | - - job: 'PEP8' |
8 | | - pool: |
9 | | - vmIMage: 'VS2017-Win2016' |
10 | | - steps: |
11 | | - - task: UsePythonVersion@0 |
12 | | - inputs: |
13 | | - versionSpec: '3.7' |
14 | | - |
15 | | - - script: | |
16 | | - python -m pip install --upgrade pip |
17 | | - pip install -U setuptools |
18 | | - pip install -r requirements.txt |
19 | | - pip install -U pytest pylint pytest-sugar pytest-flake8 flake8-bugbear flake8-docstrings |
20 | | - displayName: 'Install dependencies' |
21 | | -
|
22 | | - - script: | |
23 | | - pytest -vvv --flake8 -m flake8 --junitxml=flake8_result.xml threaded |
24 | | - displayName: 'PEP8' |
25 | | -
|
26 | | - - task: PublishTestResults@2 |
27 | | - displayName: publish test results via junit |
28 | | - condition: succeededOrFailed() |
29 | | - inputs: |
30 | | - testResultsFormat: "JUnit" |
31 | | - testResultsFiles: ${{ format('$(System.DefaultWorkingDirectory)/flake8_result.xml') }} |
32 | | - testRunTitle: 'PEP8' |
33 | | - |
34 | | - - job: 'PyLint' |
35 | | - pool: |
36 | | - vmIMage: 'VS2017-Win2016' |
37 | | - steps: |
38 | | - - task: UsePythonVersion@0 |
39 | | - inputs: |
40 | | - versionSpec: '3.7' |
41 | | - |
42 | | - - script: | |
43 | | - python -m pip install --upgrade pip |
44 | | - pip install -U setuptools |
45 | | - pip install -r requirements.txt |
46 | | - pip install -U pytest pylint pytest-pylint pytest-sugar |
47 | | - displayName: 'Install dependencies' |
48 | | -
|
49 | | - - script: | |
50 | | - pytest -vvv --pylint -m pylint --junitxml=pylint_result.xml threaded |
51 | | - displayName: 'PyLint' |
52 | | -
|
53 | | - - task: PublishTestResults@2 |
54 | | - displayName: publish test results via junit |
55 | | - condition: succeededOrFailed() |
56 | | - inputs: |
57 | | - testResultsFormat: "JUnit" |
58 | | - testResultsFiles: ${{ format('$(System.DefaultWorkingDirectory)/pylint_result.xml') }} |
59 | | - testRunTitle: 'PyLint' |
60 | | - |
61 | | - - job: 'MyPy' |
62 | | - pool: |
63 | | - vmIMage: 'VS2017-Win2016' |
64 | | - steps: |
65 | | - - task: UsePythonVersion@0 |
66 | | - inputs: |
67 | | - versionSpec: '3.7' |
68 | | - |
69 | | - - script: | |
70 | | - python -m pip install --upgrade pip |
71 | | - pip install -U setuptools |
72 | | - pip install -r requirements.txt |
73 | | - pip install -U mypy |
74 | | - displayName: 'Install dependencies' |
75 | | -
|
76 | | - - script: | |
77 | | - mypy --strict --junit-xml=mypy_result.xml threaded |
78 | | - displayName: 'MyPy' |
79 | | -
|
80 | | - - task: PublishTestResults@2 |
81 | | - displayName: publish test results via junit |
82 | | - condition: succeededOrFailed() |
83 | | - inputs: |
84 | | - testResultsFormat: "JUnit" |
85 | | - testResultsFiles: ${{ format('$(System.DefaultWorkingDirectory)/mypy_result.xml') }} |
86 | | - testRunTitle: 'MyPy' |
| 7 | +- job: 'PEP8' |
| 8 | + pool: |
| 9 | + vmIMage: 'VS2017-Win2016' |
| 10 | + steps: |
| 11 | + - task: UsePythonVersion@0 |
| 12 | + inputs: |
| 13 | + versionSpec: '3.7' |
| 14 | + |
| 15 | + - script: | |
| 16 | + python -m pip install --upgrade pip |
| 17 | + pip install -U setuptools |
| 18 | + pip install -r requirements.txt |
| 19 | + pip install -U pytest pylint pytest-sugar pytest-flake8 flake8-bugbear flake8-docstrings |
| 20 | + displayName: 'Install dependencies' |
| 21 | +
|
| 22 | + - script: | |
| 23 | + pytest -vvv --flake8 -m flake8 --junitxml=flake8_result.xml threaded |
| 24 | + displayName: 'PEP8' |
| 25 | +
|
| 26 | + - task: PublishTestResults@2 |
| 27 | + displayName: publish test results via junit |
| 28 | + condition: succeededOrFailed() |
| 29 | + inputs: |
| 30 | + testResultsFormat: "JUnit" |
| 31 | + testResultsFiles: ${{ format('$(System.DefaultWorkingDirectory)/flake8_result.xml') }} |
| 32 | + testRunTitle: 'PEP8' |
| 33 | + |
| 34 | +- job: 'PyLint' |
| 35 | + pool: |
| 36 | + vmIMage: 'VS2017-Win2016' |
| 37 | + steps: |
| 38 | + - task: UsePythonVersion@0 |
| 39 | + inputs: |
| 40 | + versionSpec: '3.7' |
| 41 | + |
| 42 | + - script: | |
| 43 | + python -m pip install --upgrade pip |
| 44 | + pip install -U setuptools |
| 45 | + pip install -r requirements.txt |
| 46 | + pip install -U pytest pylint pytest-pylint pytest-sugar |
| 47 | + displayName: 'Install dependencies' |
| 48 | +
|
| 49 | + - script: | |
| 50 | + pytest -vvv --pylint -m pylint --junitxml=pylint_result.xml threaded |
| 51 | + displayName: 'PyLint' |
| 52 | +
|
| 53 | + - task: PublishTestResults@2 |
| 54 | + displayName: publish test results via junit |
| 55 | + condition: succeededOrFailed() |
| 56 | + inputs: |
| 57 | + testResultsFormat: "JUnit" |
| 58 | + testResultsFiles: ${{ format('$(System.DefaultWorkingDirectory)/pylint_result.xml') }} |
| 59 | + testRunTitle: 'PyLint' |
| 60 | + |
| 61 | +- job: 'MyPy' |
| 62 | + pool: |
| 63 | + vmIMage: 'VS2017-Win2016' |
| 64 | + steps: |
| 65 | + - task: UsePythonVersion@0 |
| 66 | + inputs: |
| 67 | + versionSpec: '3.7' |
| 68 | + |
| 69 | + - script: | |
| 70 | + python -m pip install --upgrade pip |
| 71 | + pip install -U setuptools |
| 72 | + pip install -r requirements.txt |
| 73 | + pip install -U mypy |
| 74 | + displayName: 'Install dependencies' |
| 75 | +
|
| 76 | + - script: | |
| 77 | + mypy --strict --junit-xml=mypy_result.xml threaded |
| 78 | + displayName: 'MyPy' |
| 79 | +
|
| 80 | + - task: PublishTestResults@2 |
| 81 | + displayName: publish test results via junit |
| 82 | + condition: succeededOrFailed() |
| 83 | + inputs: |
| 84 | + testResultsFormat: "JUnit" |
| 85 | + testResultsFiles: ${{ format('$(System.DefaultWorkingDirectory)/mypy_result.xml') }} |
| 86 | + testRunTitle: 'MyPy' |
87 | 87 |
|
88 | 88 | - template: .azure_pipelines/run_tests.yml |
89 | 89 | parameters: {name: 'Python_34', python: '3.4', architecture: 'x64', kind: 'native'} |
|
0 commit comments