Skip to content

Commit a13f150

Browse files
committed
Publish pylint results on azure
1 parent 62c285a commit a13f150

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

.azure_pipelines/run_tests.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ parameters:
66

77
jobs:
88
- job: ${{ format('{0}_{1}_{2}', parameters.name, parameters.architecture, parameters.kind) }}
9-
dependsOn: PyLint
9+
dependsOn:
10+
- PyLint
11+
- MyPy
1012
pool:
1113
vmImage: "vs2017-win2016"
1214

azure-pipelines.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,18 @@ jobs:
1919
displayName: 'Install dependencies'
2020
2121
- script: |
22-
pip install -U pylint
23-
pylint -f msvs exec_helpers
22+
pip install -U pytest pylint pytest-pylint pytest-sugar
23+
pytest -vvv --pylint -m pylint --junitxml=pylint_result.xml exec_helpers
2424
displayName: 'PyLint'
2525
26+
- task: PublishTestResults@2
27+
displayName: publish test results via junit
28+
condition: succeededOrFailed()
29+
inputs:
30+
testResultsFormat: "PyLint"
31+
testResultsFiles: ${{ format('$(System.DefaultWorkingDirectory)/pylint_result.xml') }}
32+
testRunTitle: 'MyPy'
33+
2634
- job: 'MyPy'
2735
pool:
2836
vmIMage: 'VS2017-Win2016'

0 commit comments

Comments
 (0)