@@ -55,53 +55,34 @@ jobs:
55
55
pool :
56
56
vmImage : ' ubuntu-18.04'
57
57
variables :
58
- python.version : ' 3.6 '
58
+ python.version : ' 3.8 '
59
59
steps :
60
60
- template : azure-pipelines-steps.yml
61
61
parameters :
62
- body :
63
- - script : ' sudo apt-get -yq install graphviz'
64
- displayName : ' Install graphviz'
65
-
66
- - script : ' pip install sklearn-contrib-lightning'
67
- displayName : ' Install lightning'
68
-
69
- - script : ' pip install git+https://github.com/slundberg/shap.git@d1d2700acc0259f211934373826d5ff71ad514de'
70
- displayName : ' Install specific version of shap'
71
-
72
- - script : ' python setup.py build_sphinx -W'
73
- displayName : ' Build documentation'
74
-
62
+ post :
75
63
- publish : ' build/sphinx/html'
76
64
artifact : ' Documentation'
77
65
displayName : ' Publish documentation as artifact'
78
-
79
- - script : ' python setup.py build_sphinx -b doctest'
80
- displayName : ' Run doctests'
81
- package : ' -e .[automl]'
66
+ env : ' doctest'
82
67
83
68
- job : ' Notebooks'
84
69
dependsOn : ' EvalChanges'
85
70
condition : eq(dependencies.EvalChanges.outputs['output.buildNbs'], 'True')
86
- variables :
87
- python.version : ' 3.8'
88
71
pool :
89
72
vmImage : ' ubuntu-18.04'
73
+ variables :
74
+ python.version : ' 3.8'
90
75
steps :
91
76
- template : azure-pipelines-steps.yml
92
77
parameters :
93
- body :
94
- - script : ' python setup.py pytest'
95
- displayName : ' Unit tests'
96
- env :
97
- PYTEST_ADDOPTS : ' -m "notebook"'
98
-
78
+ post :
99
79
- task : PublishTestResults@2
100
80
displayName : ' Publish Test Results **/test-results.xml'
101
81
inputs :
102
82
testResultsFiles : ' **/test-results.xml'
103
83
testRunTitle : ' Notebooks'
104
84
condition : succeededOrFailed()
85
+ env : ' notebooks'
105
86
106
87
# - job: 'AutoML'
107
88
# dependsOn: 'EvalChanges'
@@ -141,17 +122,19 @@ jobs:
141
122
- job : ' Linting'
142
123
dependsOn : ' EvalChanges'
143
124
condition : eq(dependencies.EvalChanges.outputs['output.testCode'], 'True')
144
- variables :
145
- python.version : ' 3.8'
146
125
pool :
147
126
vmImage : ' macOS-10.15'
148
127
steps :
149
- - template : azure-pipelines-steps.yml
150
- parameters :
151
- body :
152
- - script : ' pip install pycodestyle && pycodestyle econml'
153
- failOnStderr : true
154
- displayName : Linting
128
+ - task : UsePythonVersion@0
129
+ displayName : ' Use Python 3.8'
130
+ inputs :
131
+ versionSpec : ' 3.8'
132
+ # note: don't need to install the package itself to lint it
133
+ - script : ' python -m pip install --upgrade pip && pip install pycodestyle'
134
+ displayName : ' Install pycodestyle'
135
+ - script : ' pycodestyle econml'
136
+ failOnStderr : true
137
+ displayName : Linting
155
138
156
139
- job : ' Tests'
157
140
dependsOn : ' EvalChanges'
@@ -160,30 +143,39 @@ jobs:
160
143
matrix :
161
144
Linux, Python 3.6 :
162
145
imageName : ' ubuntu-18.04'
146
+ env : ' py36'
163
147
python.version : ' 3.6'
164
148
macOS, Python 3.6 :
165
149
imageName : ' macOS-10.15'
150
+ env : ' py36'
166
151
python.version : ' 3.6'
167
152
Windows, Python 3.6 :
168
153
imageName : ' windows-2019'
154
+ env : ' py36'
169
155
python.version : ' 3.6'
170
156
Linux, Python 3.7 :
171
157
imageName : ' ubuntu-18.04'
158
+ env : ' py37'
172
159
python.version : ' 3.7'
173
160
macOS, Python 3.7 :
174
161
imageName : ' macOS-10.15'
162
+ env : ' py37'
175
163
python.version : ' 3.7'
176
164
Windows, Python 3.7 :
177
165
imageName : ' windows-2019'
166
+ env : ' py37'
178
167
python.version : ' 3.7'
179
168
Linux, Python 3.8 :
180
169
imageName : ' ubuntu-18.04'
170
+ env : ' py38'
181
171
python.version : ' 3.8'
182
172
macOS, Python 3.8 :
183
173
imageName : ' macOS-10.15'
174
+ env : ' py38'
184
175
python.version : ' 3.8'
185
176
Windows, Python 3.8 :
186
177
imageName : ' windows-2019'
178
+ env : ' py38'
187
179
python.version : ' 3.8'
188
180
189
181
pool :
@@ -194,12 +186,7 @@ jobs:
194
186
steps :
195
187
- template : azure-pipelines-steps.yml
196
188
parameters :
197
- body :
198
- - script : ' python setup.py pytest'
199
- displayName : ' Unit tests'
200
- env :
201
- PYTEST_ADDOPTS : ' -m "not (notebook or automl)"'
202
- COVERAGE_PROCESS_START : ' setup.cfg'
189
+ post :
203
190
- task : PublishTestResults@2
204
191
displayName : ' Publish Test Results **/test-results.xml'
205
192
inputs :
@@ -212,3 +199,4 @@ jobs:
212
199
inputs :
213
200
codeCoverageTool : Cobertura
214
201
summaryFileLocation : ' $(System.DefaultWorkingDirectory)/**/coverage.xml'
202
+ env : $(env)
0 commit comments