@@ -101,6 +101,19 @@ jobs:
101
101
name : Tests
102
102
# The value of runs-on is the OS of the current job (specified in the strategy matrix below) instead of being hardcoded.
103
103
runs-on : ${{ matrix.os }}
104
+ env :
105
+ # Something in Node 12.16.0 breaks the TS debug adapter, and ubuntu-latest bundles Node 12.16.1.
106
+ # We can remove this when we switch over to the python-based DA in https://github.com/microsoft/vscode-python/issues/7136.
107
+ # See https://github.com/microsoft/ptvsd/issues/2068
108
+ # At this point pinning is only needed for consistency. We no longer have TS debug adapter.
109
+ NODE_VERSION : 12.15.0
110
+ # Force a path with spaces and to test extension works in these scenarios
111
+ # Unicode characters are causing 2.7 failures so skip that for now.
112
+ special-working-directory : ' ./path with spaces'
113
+ special-working-directory-relative : ' path with spaces'
114
+ defaults :
115
+ run :
116
+ working-directory : ${{env.special-working-directory}}
104
117
if : github.repository == 'microsoft/vscode-python'
105
118
strategy :
106
119
fail-fast : false
@@ -111,15 +124,11 @@ jobs:
111
124
# Run the tests on the oldest and most recent versions of Python.
112
125
python : [2.7, 3.8]
113
126
test-suite : [ts-unit, python-unit, venv, single-workspace, multi-workspace, debugger, functional]
114
- env :
115
- # Something in Node 12.16.0 breaks the TS debug adapter, and ubuntu-latest bundles Node 12.16.1.
116
- # We can remove this when we switch over to the python-based DA in https://github.com/microsoft/vscode-python/issues/7136.
117
- # See https://github.com/microsoft/ptvsd/issues/2068
118
- # At this point pinning is only needed for consistency. We no longer have TS debug adapter.
119
- NODE_VERSION : 12.15.0
120
127
steps :
121
128
- name : Checkout
122
129
uses : actions/checkout@v2
130
+ with :
131
+ path : ${{env.special-working-directory-relative}}
123
132
124
133
- name : Cache pip files
125
134
uses : actions/cache@v2
@@ -138,7 +147,7 @@ jobs:
138
147
id : out-cache
139
148
uses : actions/cache@v2
140
149
with :
141
- path : . /out
150
+ path : ${{env.special-working-directory}} /out
142
151
key : ${{runner.os}}-${{env.CACHE_OUT_DIRECTORY}}-${{hashFiles('src/**')}}
143
152
144
153
- name : Install dependencies (npm ci)
@@ -288,6 +297,7 @@ jobs:
288
297
289
298
with :
290
299
run : npm run testSingleWorkspace
300
+ working-directory : ${{env.special-working-directory}}
291
301
if : matrix.test-suite == 'venv'
292
302
293
303
- name : Run single-workspace tests
@@ -296,6 +306,7 @@ jobs:
296
306
297
307
with :
298
308
run : npm run testSingleWorkspace
309
+ working-directory : ${{env.special-working-directory}}
299
310
if : matrix.test-suite == 'single-workspace'
300
311
301
312
- name : Run multi-workspace tests
@@ -304,6 +315,7 @@ jobs:
304
315
305
316
with :
306
317
run : npm run testMultiWorkspace
318
+ working-directory : ${{env.special-working-directory}}
307
319
if : matrix.test-suite == 'multi-workspace'
308
320
309
321
- name : Run debugger tests
@@ -312,6 +324,7 @@ jobs:
312
324
313
325
with :
314
326
run : npm run testDebugger
327
+ working-directory : ${{env.special-working-directory}}
315
328
if : matrix.test-suite == 'debugger'
316
329
317
330
- name : Run functional tests
0 commit comments