@@ -50,190 +50,21 @@ jobs:
50
50
name: output
51
51
displayName: 'Determine type of code change'
52
52
53
- - template : azure-pipelines-steps.yml
54
- parameters :
55
- versions : ['3.6']
56
- images : ['ubuntu-18.04']
57
- package : ' -e .[all]'
58
- job :
59
- job : ' Docs'
60
- displayName : ' Build documentation'
61
- dependsOn : ' EvalChanges'
62
- condition : eq(dependencies.EvalChanges.outputs['output.buildDocs'], 'True')
63
- steps :
64
- - script : ' sudo apt-get -yq install graphviz'
65
- displayName : ' Install graphviz'
66
-
67
- - script : ' pip install sklearn-contrib-lightning'
68
- displayName : ' Install lightning'
69
-
70
- - script : ' pip install git+https://github.com/slundberg/shap.git@d1d2700acc0259f211934373826d5ff71ad514de'
71
- displayName : ' Install specific version of shap'
72
-
73
- - script : ' pip install "sphinx < 3.2" sphinx_rtd_theme'
74
- displayName : ' Install sphinx'
75
-
76
- - script : ' python setup.py build_sphinx -W'
77
- displayName : ' Build documentation'
78
-
79
- - publish : ' build/sphinx/html'
80
- artifact : ' Documentation'
81
- displayName : ' Publish documentation as artifact'
82
-
83
- - script : ' python setup.py build_sphinx -b doctest'
84
- displayName : ' Run doctests'
85
-
86
- - template : azure-pipelines-steps.yml
87
- parameters :
88
- versions : ['3.8']
89
- images : ['ubuntu-18.04']
90
- package : ' -e .[tf,plt]'
91
- job :
92
- job : ' Notebooks'
93
- dependsOn : ' EvalChanges'
94
- condition : eq(dependencies.EvalChanges.outputs['output.buildNbs'], 'True')
95
- steps :
96
- # Work around https://github.com/pypa/pip/issues/9542
97
- - script : ' pip install -U numpy'
98
- displayName : ' Upgrade numpy'
99
-
100
- - script : ' pip install pytest-runner && python setup.py pytest'
101
- displayName : ' Unit tests'
102
- env :
103
- PYTEST_ADDOPTS : ' -m "notebook"'
104
-
105
- - task : PublishTestResults@2
106
- displayName : ' Publish Test Results **/test-results.xml'
107
- inputs :
108
- testResultsFiles : ' **/test-results.xml'
109
- testRunTitle : ' Notebooks'
110
- condition : succeededOrFailed()
111
-
112
- # - job: 'AutoML'
113
- # dependsOn: 'EvalChanges'
114
- # condition: eq(dependencies.EvalChanges.outputs['output.testCode'], 'True')
115
- # variables:
116
- # python.version: '3.6'
117
- # pool:
118
- # vmImage: 'ubuntu-18.04'
119
- # steps:
120
- # - template: azure-pipelines-steps.yml
121
- # parameters:
122
- # body:
123
- # - task: AzureCLI@2
124
- # displayName: 'AutoML tests'
125
- # inputs:
126
- # azureSubscription: 'automl'
127
- # scriptLocation: 'inlineScript'
128
- # scriptType: 'pscore'
129
- # powerShellIgnoreLASTEXITCODE: '' # string for now due to https://github.com/microsoft/azure-pipelines-tasks/issues/12266
130
- # inlineScript: |
131
- # $env:SUBSCRIPTION_ID = az account show --query id -o tsv
132
- # python setup.py pytest
133
- # env:
134
- # WORKSPACE_NAME: 'testWorkspace'
135
- # RESOURCE_GROUP: 'testingAutoMLEconML'
136
- # PYTEST_ADDOPTS: '-m "automl" -n 0'
137
- # COVERAGE_PROCESS_START: 'setup.cfg'
138
-
139
- # - task: PublishTestResults@2
140
- # displayName: 'Publish Test Results **/test-results.xml'
141
- # inputs:
142
- # testResultsFiles: '**/test-results.xml'
143
- # testRunTitle: 'AutoML'
144
- # condition: succeededOrFailed()
145
- # package: '.[automl]'
146
-
147
- - template : azure-pipelines-steps.yml
148
- parameters :
149
- versions : ['3.8']
150
- images : ['macOS-10.15']
151
- job :
152
- job : ' Linting'
153
- dependsOn : ' EvalChanges'
154
- condition : eq(dependencies.EvalChanges.outputs['output.testCode'], 'True')
155
- steps :
156
- - script : ' pip install pycodestyle && pycodestyle econml'
157
- failOnStderr : true
158
- displayName : Linting
159
-
160
53
- template : azure-pipelines-steps.yml
161
54
parameters :
162
55
package : ' -e .[tf,plt]'
56
+ images : ['macOS-10.14','macOS-10.15']
163
57
job :
164
58
job : Tests_main
165
59
dependsOn : ' EvalChanges'
166
60
condition : eq(dependencies.EvalChanges.outputs['output.testCode'], 'True')
167
61
displayName : ' Run tests (main)'
168
62
steps :
63
+ - script : ' pip install psutil && python -c "import psutil; print(psutil.virtual_memory())"'
64
+ displayName : ' Memory diagnostic'
169
65
- script : ' pip install pytest-runner && python setup.py pytest'
170
66
displayName : ' Unit tests'
171
67
env :
68
+ PYTHONMALLOC : debug
69
+ PYTHONFAULTHANDLER : 1
172
70
PYTEST_ADDOPTS : ' -m "not (notebook or automl or dml or causal)" -n 2'
173
- COVERAGE_PROCESS_START : ' setup.cfg'
174
- - task : PublishTestResults@2
175
- displayName : ' Publish Test Results **/test-results.xml'
176
- inputs :
177
- testResultsFiles : ' **/test-results.xml'
178
- testRunTitle : ' Python $(python.version), image $(imageName)'
179
- condition : succeededOrFailed()
180
-
181
- - task : PublishCodeCoverageResults@1
182
- displayName : ' Publish Code Coverage Results'
183
- inputs :
184
- codeCoverageTool : Cobertura
185
- summaryFileLocation : ' $(System.DefaultWorkingDirectory)/**/coverage.xml'
186
-
187
- - template : azure-pipelines-steps.yml
188
- parameters :
189
- package : ' -e .[tf,plt]'
190
- job :
191
- job : Tests_dml
192
- dependsOn : ' EvalChanges'
193
- condition : eq(dependencies.EvalChanges.outputs['output.testCode'], 'True')
194
- displayName : ' Run tests (DML)'
195
- steps :
196
- - script : ' pip install pytest-runner && python setup.py pytest'
197
- displayName : ' Unit tests'
198
- env :
199
- PYTEST_ADDOPTS : ' -m "dml"'
200
- COVERAGE_PROCESS_START : ' setup.cfg'
201
- - task : PublishTestResults@2
202
- displayName : ' Publish Test Results **/test-results.xml'
203
- inputs :
204
- testResultsFiles : ' **/test-results.xml'
205
- testRunTitle : ' Python $(python.version), image $(imageName)'
206
- condition : succeededOrFailed()
207
-
208
- - task : PublishCodeCoverageResults@1
209
- displayName : ' Publish Code Coverage Results'
210
- inputs :
211
- codeCoverageTool : Cobertura
212
- summaryFileLocation : ' $(System.DefaultWorkingDirectory)/**/coverage.xml'
213
-
214
- - template : azure-pipelines-steps.yml
215
- parameters :
216
- package : ' -e .[tf,plt]'
217
- job :
218
- job : Tests_causal
219
- dependsOn : ' EvalChanges'
220
- condition : eq(dependencies.EvalChanges.outputs['output.testCode'], 'True')
221
- displayName : ' Run tests (Causal)'
222
- steps :
223
- - script : ' pip install pytest-runner && python setup.py pytest'
224
- displayName : ' Unit tests'
225
- env :
226
- PYTEST_ADDOPTS : ' -m "causal" -n 1'
227
- COVERAGE_PROCESS_START : ' setup.cfg'
228
- - task : PublishTestResults@2
229
- displayName : ' Publish Test Results **/test-results.xml'
230
- inputs :
231
- testResultsFiles : ' **/test-results.xml'
232
- testRunTitle : ' Python $(python.version), image $(imageName)'
233
- condition : succeededOrFailed()
234
-
235
- - task : PublishCodeCoverageResults@1
236
- displayName : ' Publish Code Coverage Results'
237
- inputs :
238
- codeCoverageTool : Cobertura
239
- summaryFileLocation : ' $(System.DefaultWorkingDirectory)/**/coverage.xml'
0 commit comments