From ad8d70f5ea30bd0b3d271de360c190cd8de13578 Mon Sep 17 00:00:00 2001 From: Jianhui Harold Date: Thu, 9 Jan 2020 12:29:49 +0800 Subject: [PATCH] Fix: tox can use ADO default Python 2.7 (#11802) --- azure-pipelines.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index f999063b184..81c8510ebd1 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -382,10 +382,13 @@ jobs: matrix: Python27: python.version: '2.7' + tox_env: 'py27' Python36: python.version: '3.6' + tox_env: 'py36' Python38: python.version: '3.8' + tox_env: 'py38' steps: - task: UsePythonVersion@0 displayName: 'Use Python $(python.version)' @@ -395,6 +398,8 @@ jobs: displayName: 'Install pip and tox' - bash: ./scripts/ci/unittest.sh displayName: 'Run Unit Test' + env: + TOXENV: $(tox_env) - job: IntegrationTestAgainstProfiles displayName: Integration Test against Profiles