@@ -6,7 +6,10 @@ variables:
6
6
COVERALLS_GIT_COMMIT : $(Build.SourceVersion)
7
7
COVERALLS_SERVICE_JOB_ID : $(Build.BuildId)
8
8
COVERALLS_SERVICE_NAME : python-ci
9
- python.version : 3.7.6
9
+ python.36 : 3.6.9
10
+ python.37 : 3.7.6
11
+ pythin.38 : 3.8.1
12
+ python.version : $(python.37)
10
13
11
14
12
15
jobs :
53
56
pip install pytest
54
57
pip install pytest-cov
55
58
pip install coveralls
56
- pytest --junitxml=junit/test-results.xml --cov-config=.coveragerc --cov --cov-report=xml --cov-report=html
57
- displayName: Pytest
59
+ displayName: PyTest
60
+
61
+ - task : UsePythonVersion@0
62
+ displayName : ' Use Python $(python.36)'
63
+ inputs :
64
+ versionSpec : ' $(python.36)'
65
+
66
+ - script :
67
+ pytest --junitxml=junit/test-results.36.xml --cov-config=.coveragerc --cov --cov-report=xml --cov-report=html
68
+ displayName : Pytest.36
69
+
70
+ - task : UsePythonVersion@0
71
+ displayName : ' Use Python $(python.37)'
72
+ inputs :
73
+ versionSpec : ' $(python.37)'
74
+
75
+ - script :
76
+ pytest --junitxml=junit/test-results.37.xml --cov-config=.coveragerc --cov --cov-report=xml --cov-report=html
77
+ displayName : Pytest.37
78
+
79
+ - task : UsePythonVersion@0
80
+ displayName : ' Use Python $(python.38)'
81
+ inputs :
82
+ versionSpec : ' $(python.38)'
83
+
84
+ - script :
85
+ pytest --junitxml=junit/test-results.38.xml --cov-config=.coveragerc --cov --cov-report=xml --cov-report=html
86
+ displayName : Pytest.38
87
+
88
+ - task : UsePythonVersion@0
89
+ displayName : ' Use Python $(python.version)'
90
+ inputs :
91
+ versionSpec : ' $(python.version)'
58
92
59
93
- script : ' black --check libraries'
60
94
displayName : ' Check Black compliant'
65
99
- task : PublishTestResults@2
66
100
displayName : ' Publish Test Results **/test-results.xml'
67
101
inputs :
68
- testResultsFiles : ' **/test-results.xml'
102
+ testResultsFiles : ' **/test-results* .xml'
69
103
testRunTitle : ' Python $(python.version)'
70
104
71
105
- script : ' COVERALLS_REPO_TOKEN=$(COVERALLS_TOKEN) coveralls'
0 commit comments