Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 558249b

Browse files
authored
Install ptvsd wheels for all tests (microsoft#7555)
* Install ptvsd wheels for all tests, not just functional * Only download wheels for Python 3.7 * parenthesis * Set pythonVersion for windows unit tests
1 parent bedaf9b commit 558249b

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

build/ci/templates/test_phases.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ steps:
145145
scriptPath: "./pythonFiles/install_ptvsd.py"
146146
arguments: "--ci"
147147
failOnStderr: true
148-
condition: contains(variables['TestsToRun'], 'testUnitTests')
148+
condition: and(eq(variables['NeedsPythonTestReqs'], 'true'), eq(variables['PythonVersion'], '3.7'))
149149

150150
# Run the Python unit tests in our codebase. Produces a JUnit-style log file that
151151
# will be uploaded after all tests are complete.

build/ci/vscode-python-pr-validation.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ stages:
4343
# SkipXvfb: [true|false] - skip initialization of xvfb prior to running system tests on Linux. False if not set
4444
# UploadBinary: [true|false] - upload test binaries to Azure if true. False if not set.
4545
'Win-Py3.7 Unit':
46+
PythonVersion: '3.7'
4647
VMImageName: 'vs2017-win2016'
4748
TestsToRun: 'testUnitTests, pythonUnitTests, pythonInternalTools'
4849
NeedsPythonTestReqs: true

0 commit comments

Comments
 (0)