Skip to content

Commit 7f78a7e

Browse files
committed
Restore Python 3.6 support
1 parent f1bfe22 commit 7f78a7e

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

azure-pipelines-steps.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
parameters:
77
package: '-e .'
88
images: ['ubuntu-18.04', 'macOS-10.15', 'windows-2019']
9-
versions: ['3.7', '3.8', '3.9']
9+
versions: ['3.6', '3.7', '3.8', '3.9']
1010
job:
1111
job: Job
1212

azure-pipelines.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ jobs:
198198
condition: eq(dependencies.EvalChanges.outputs['output.testCode'], 'True')
199199
displayName: 'Run tests (main)'
200200
steps:
201-
- script: 'pip install pytest pytest-runner && python setup.py pytest'
201+
- script: 'pip install pytest pytest-runner "coverage<6.4.1;python_version==''3.6''" "coverage;python_version>''3.6''" && python setup.py pytest'
202202
displayName: 'Unit tests'
203203
env:
204204
PYTEST_ADDOPTS: '-m "not (notebook or automl or dml or serial or cate_api)" -n 2'
@@ -225,7 +225,7 @@ jobs:
225225
condition: eq(dependencies.EvalChanges.outputs['output.testCode'], 'True')
226226
displayName: 'Run tests (DML)'
227227
steps:
228-
- script: 'pip install pytest pytest-runner && python setup.py pytest'
228+
- script: 'pip install pytest pytest-runner "coverage<6.4.1;python_version==''3.6''" "coverage;python_version>''3.6''" && python setup.py pytest'
229229
displayName: 'Unit tests'
230230
env:
231231
PYTEST_ADDOPTS: '-m "dml"'
@@ -254,7 +254,7 @@ jobs:
254254
condition: eq(dependencies.EvalChanges.outputs['output.testCode'], 'True')
255255
displayName: 'Run tests (Serial)'
256256
steps:
257-
- script: 'pip install pytest pytest-runner && python setup.py pytest'
257+
- script: 'pip install pytest pytest-runner "coverage<6.4.1;python_version==''3.6''" "coverage;python_version>''3.6''" && python setup.py pytest'
258258
displayName: 'Unit tests'
259259
env:
260260
PYTEST_ADDOPTS: '-m "serial" -n 1'
@@ -281,7 +281,7 @@ jobs:
281281
condition: eq(dependencies.EvalChanges.outputs['output.testCode'], 'True')
282282
displayName: 'Run tests (Other)'
283283
steps:
284-
- script: 'pip install pytest pytest-runner'
284+
- script: 'pip install pytest pytest-runner "coverage<6.4.1;python_version==''3.6''" "coverage;python_version>''3.6''"'
285285
displayName: 'Install pytest'
286286
- script: 'python setup.py pytest'
287287
displayName: 'CATE Unit tests'

setup.cfg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ project_urls =
2020
Source Code=https://github.com/Microsoft/EconML
2121
Documentation=https://econml.azurewebsites.net/
2222
classifiers =
23+
Programming Language :: Python :: 3.6
2324
Programming Language :: Python :: 3.7
2425
Programming Language :: Python :: 3.8
2526
Programming Language :: Python :: 3.9

0 commit comments

Comments
 (0)