File tree 3 files changed +23
-7
lines changed
3 files changed +23
-7
lines changed Original file line number Diff line number Diff line change @@ -27,9 +27,9 @@ matrix:
27
27
- flake8
28
28
- mypy .
29
29
- pytest -r a -v
30
- after_success :
31
- - pytest --cov
32
- - coveralls
30
+ # after_success:
31
+ # - pytest --cov
32
+ # - coveralls
33
33
34
34
install : pip install -e .[tests]
35
35
Original file line number Diff line number Diff line change 19
19
steps :
20
20
- task : UsePythonVersion@0
21
21
inputs :
22
- versionSpec : ' $(python.version)'
22
+ versionSpec : $(python.version)
23
23
24
24
- script : pip install -e .[tests,cov,github]
25
25
displayName : Dev install
@@ -28,6 +28,23 @@ steps:
28
28
- script : mypy .
29
29
displayName : Type Check
30
30
- script : pytest -r a -v
31
+ condition : ne(variables['Agent.JobName'], 'Job linux_py37')
31
32
displayName : Pytest
32
- - script : pytest --cov
33
- displayName : Coverage
33
+
34
+ - script : pytest --junitxml=junit/test-results.xml --cov --cov-report=xml --cov-report=html
35
+ condition : eq(variables['Agent.JobName'], 'Job linux_py37')
36
+ displayName : PytestCoverage
37
+
38
+ - task : PublishTestResults@2
39
+ condition : succeededOrFailed()
40
+ inputs :
41
+ testResultsFiles : ' **/test-*.xml'
42
+ testRunTitle : ' Publish test results for Python $(python.version)'
43
+
44
+ # https://docs.microsoft.com/en-us/azure/devops/pipelines/languages/python?view=azure-devops#publish-code-coverage-results
45
+ - task : PublishCodeCoverageResults@1
46
+ condition : and(succeeded(), eq(variables['Agent.JobName'], 'Job linux_py37'))
47
+ inputs :
48
+ codeCoverageTool : Cobertura
49
+ summaryFileLocation : ' $(System.DefaultWorkingDirectory)/**/coverage.xml'
50
+ reportDirectory : ' $(System.DefaultWorkingDirectory)/**/htmlcov'
Original file line number Diff line number Diff line change @@ -55,7 +55,6 @@ tests =
55
55
pytest >= 3.9
56
56
cov =
57
57
pytest-cov
58
- coveralls
59
58
flake8
60
59
mypy
61
60
github =
You can’t perform that action at this time.
0 commit comments