@@ -167,24 +167,13 @@ jobs:
167
167
with :
168
168
python-version : ${{ matrix.python }}
169
169
170
- # We use a RAMDisk on Windows, since filesystem IO is a big slowdown
171
- # for our tests.
172
- - name : Create a RAMDisk
173
- run : ./tools/ci/New-RAMDisk.ps1 -Drive R -Size 1GB
174
-
175
- - name : Setup RAMDisk permissions
176
- run : |
177
- mkdir R:\Temp
178
- $acl = Get-Acl "R:\Temp"
179
- $rule = New-Object System.Security.AccessControl.FileSystemAccessRule(
180
- "Everyone", "FullControl", "ContainerInherit,ObjectInherit", "None", "Allow"
181
- )
182
- $acl.AddAccessRule($rule)
183
- Set-Acl "R:\Temp" $acl
184
-
170
+ # We use C:\Temp (which is already available on the worker)
171
+ # as a temporary directory for all of the tests because the
172
+ # default value (under the user dir) is more deeply nested
173
+ # and causes tests to fail with "path too long" errors.
185
174
- run : pip install nox
186
175
env :
187
- TEMP : " R :\\ Temp"
176
+ TEMP : " C :\\ Temp"
188
177
189
178
# Main check
190
179
- name : Run unit tests
@@ -194,7 +183,7 @@ jobs:
194
183
-m unit
195
184
--verbose --numprocesses auto --showlocals
196
185
env :
197
- TEMP : " R :\\ Temp"
186
+ TEMP : " C :\\ Temp"
198
187
199
188
- name : Run integration tests (group 1)
200
189
if : matrix.group == 1
@@ -203,7 +192,7 @@ jobs:
203
192
-m integration -k "not test_install"
204
193
--verbose --numprocesses auto --showlocals
205
194
env :
206
- TEMP : " R :\\ Temp"
195
+ TEMP : " C :\\ Temp"
207
196
208
197
- name : Run integration tests (group 2)
209
198
if : matrix.group == 2
@@ -212,7 +201,7 @@ jobs:
212
201
-m integration -k "test_install"
213
202
--verbose --numprocesses auto --showlocals
214
203
env :
215
- TEMP : " R :\\ Temp"
204
+ TEMP : " C :\\ Temp"
216
205
217
206
tests-zipapp :
218
207
name : tests / zipapp
0 commit comments