diff --git a/build/ci/templates/test_phases.yml b/build/ci/templates/test_phases.yml index 1b4e9fd15657..96203ae7074f 100644 --- a/build/ci/templates/test_phases.yml +++ b/build/ci/templates/test_phases.yml @@ -145,7 +145,7 @@ steps: scriptPath: "./pythonFiles/install_ptvsd.py" arguments: "--ci" failOnStderr: true - condition: contains(variables['TestsToRun'], 'testUnitTests') + condition: and(eq(variables['NeedsPythonTestReqs'], 'true'), eq(variables['PythonVersion'], '3.7')) # Run the Python unit tests in our codebase. Produces a JUnit-style log file that # will be uploaded after all tests are complete. diff --git a/build/ci/vscode-python-pr-validation.yaml b/build/ci/vscode-python-pr-validation.yaml index f3cd983bf235..a33caf7c9359 100644 --- a/build/ci/vscode-python-pr-validation.yaml +++ b/build/ci/vscode-python-pr-validation.yaml @@ -43,6 +43,7 @@ stages: # SkipXvfb: [true|false] - skip initialization of xvfb prior to running system tests on Linux. False if not set # UploadBinary: [true|false] - upload test binaries to Azure if true. False if not set. 'Win-Py3.7 Unit': + PythonVersion: '3.7' VMImageName: 'vs2017-win2016' TestsToRun: 'testUnitTests, pythonUnitTests, pythonInternalTools' NeedsPythonTestReqs: true