@@ -48,163 +48,54 @@ jobs:
4848 name: output
4949 displayName: 'Determine type of code change'
5050
51- - template : azure-pipelines-steps.yml
52- parameters :
53- versions : ['3.6']
54- images : ['ubuntu-18.04']
55- package : ' -e .[all]'
56- job :
57- job : ' Docs'
58- displayName : ' Build documentation'
59- dependsOn : ' EvalChanges'
60- condition : eq(dependencies.EvalChanges.outputs['output.buildDocs'], 'True')
61- steps :
62- - script : ' sudo apt-get -yq install graphviz'
63- displayName : ' Install graphviz'
64-
65- - script : ' pip install sklearn-contrib-lightning'
66- displayName : ' Install lightning'
67-
68- - script : ' pip install git+https://github.com/slundberg/shap.git@d1d2700acc0259f211934373826d5ff71ad514de'
69- displayName : ' Install specific version of shap'
70-
71- - script : ' pip install "sphinx < 3.2" sphinx_rtd_theme'
72- displayName : ' Install sphinx'
73-
74- - script : ' python setup.py build_sphinx -W'
75- displayName : ' Build documentation'
76-
77- - publish : ' build/sphinx/html'
78- artifact : ' Documentation'
79- displayName : ' Publish documentation as artifact'
80-
81- - script : ' python setup.py build_sphinx -b doctest'
82- displayName : ' Run doctests'
83-
8451 - template : azure-pipelines-steps.yml
8552 parameters :
8653 versions : ['3.8']
8754 images : ['ubuntu-18.04']
88- package : ' -e .[tf]'
89- job :
90- job : ' Notebooks'
91- dependsOn : ' EvalChanges'
92- condition : eq(dependencies.EvalChanges.outputs['output.buildNbs'], 'True')
93- steps :
94- # Work around https://github.com/pypa/pip/issues/9542
95- - script : ' pip install -U numpy'
96- displayName : ' Upgrade numpy'
97-
98- - script : ' pip install pytest-runner && python setup.py pytest'
99- displayName : ' Unit tests'
100- env :
101- PYTEST_ADDOPTS : ' -m "notebook"'
102-
103- - task : PublishTestResults@2
104- displayName : ' Publish Test Results **/test-results.xml'
105- inputs :
106- testResultsFiles : ' **/test-results.xml'
107- testRunTitle : ' Notebooks'
108- condition : succeededOrFailed()
109-
110- # - job: 'AutoML'
111- # dependsOn: 'EvalChanges'
112- # condition: eq(dependencies.EvalChanges.outputs['output.testCode'], 'True')
113- # variables:
114- # python.version: '3.6'
115- # pool:
116- # vmImage: 'ubuntu-18.04'
117- # steps:
118- # - template: azure-pipelines-steps.yml
119- # parameters:
120- # body:
121- # - task: AzureCLI@2
122- # displayName: 'AutoML tests'
123- # inputs:
124- # azureSubscription: 'automl'
125- # scriptLocation: 'inlineScript'
126- # scriptType: 'pscore'
127- # powerShellIgnoreLASTEXITCODE: '' # string for now due to https://github.com/microsoft/azure-pipelines-tasks/issues/12266
128- # inlineScript: |
129- # $env:SUBSCRIPTION_ID = az account show --query id -o tsv
130- # python setup.py pytest
131- # env:
132- # WORKSPACE_NAME: 'testWorkspace'
133- # RESOURCE_GROUP: 'testingAutoMLEconML'
134- # PYTEST_ADDOPTS: '-m "automl" -n 0'
135- # COVERAGE_PROCESS_START: 'setup.cfg'
136-
137- # - task: PublishTestResults@2
138- # displayName: 'Publish Test Results **/test-results.xml'
139- # inputs:
140- # testResultsFiles: '**/test-results.xml'
141- # testRunTitle: 'AutoML'
142- # condition: succeededOrFailed()
143- # package: '.[automl]'
144-
145- - template : azure-pipelines-steps.yml
146- parameters :
147- versions : ['3.8']
148- images : ['macOS-10.15']
149- job :
150- job : ' Linting'
151- dependsOn : ' EvalChanges'
152- condition : eq(dependencies.EvalChanges.outputs['output.testCode'], 'True')
153- steps :
154- - script : ' pip install pycodestyle && pycodestyle econml'
155- failOnStderr : true
156- displayName : Linting
157-
158- - template : azure-pipelines-steps.yml
159- parameters :
16055 package : ' -e .[tf,plt]'
16156 job :
16257 job : Tests_no_dml
16358 dependsOn : ' EvalChanges'
16459 condition : eq(dependencies.EvalChanges.outputs['output.testCode'], 'True')
16560 displayName : ' Run tests (non-DML)'
16661 steps :
167- - script : ' pip install pytest-runner && python setup.py pytest'
62+ - script : ' pip install pytest-runner filprofiler && fil-profile run setup.py pytest'
16863 displayName : ' Unit tests'
16964 env :
170- PYTEST_ADDOPTS : ' -m "not (notebook or automl or dml)"'
65+ PYTEST_ADDOPTS : ' -m "not (notebook or automl or dml or half )"'
17166 COVERAGE_PROCESS_START : ' setup.cfg'
17267 - task : PublishTestResults@2
17368 displayName : ' Publish Test Results **/test-results.xml'
17469 inputs :
17570 testResultsFiles : ' **/test-results.xml'
17671 testRunTitle : ' Python $(python.version), image $(imageName)'
17772 condition : succeededOrFailed()
178-
179- - task : PublishCodeCoverageResults@1
180- displayName : ' Publish Code Coverage Results'
181- inputs :
182- codeCoverageTool : Cobertura
183- summaryFileLocation : ' $(System.DefaultWorkingDirectory)/**/coverage.xml'
73+ - publish : ' fil-result'
74+ artifact : ' Profiling'
75+ displayName : ' Publish profiling results as artifact'
18476
18577- template : azure-pipelines-steps.yml
18678 parameters :
79+ versions : ['3.8']
80+ images : ['ubuntu-18.04']
18781 package : ' -e .[tf,plt]'
18882 job :
189- job : Tests_dml
83+ job : Tests_no_dml_half
19084 dependsOn : ' EvalChanges'
19185 condition : eq(dependencies.EvalChanges.outputs['output.testCode'], 'True')
192- displayName : ' Run tests (DML)'
86+ displayName : ' Run tests (non- DML)'
19387 steps :
194- - script : ' pip install pytest-runner && python setup.py pytest'
88+ - script : ' pip install pytest-runner filprofiler && fil-profile run setup.py pytest'
19589 displayName : ' Unit tests'
19690 env :
197- PYTEST_ADDOPTS : ' -m "dml and (not (notebook or automl))"'
91+ PYTEST_ADDOPTS : ' -m "half and (not (notebook or automl or dml ))"'
19892 COVERAGE_PROCESS_START : ' setup.cfg'
19993 - task : PublishTestResults@2
20094 displayName : ' Publish Test Results **/test-results.xml'
20195 inputs :
20296 testResultsFiles : ' **/test-results.xml'
20397 testRunTitle : ' Python $(python.version), image $(imageName)'
20498 condition : succeededOrFailed()
205-
206- - task : PublishCodeCoverageResults@1
207- displayName : ' Publish Code Coverage Results'
208- inputs :
209- codeCoverageTool : Cobertura
210- summaryFileLocation : ' $(System.DefaultWorkingDirectory)/**/coverage.xml'
99+ - publish : ' fil-result'
100+ artifact : ' Profiling'
101+ displayName : ' Publish profiling results as artifact'
0 commit comments