|
67 | 67 | env: |
68 | 68 | UV_PYTHON: ${{ matrix.python-version }} |
69 | 69 |
|
70 | | - steps: |
| 70 | + steps:{% endraw %}{% if use_windows_in_ci %} |
| 71 | + - name: Allow long file paths |
| 72 | + if: runner.os == 'Windows' |
| 73 | + # Some tooling (e.g. vcrpy, syrupy) generates file names past the 260 character limit Windows |
| 74 | + # defaults to. This has to happen before the checkout that writes those files. |
| 75 | + run: git config --global core.longpaths true |
| 76 | +{% endif %}{% raw %} |
71 | 77 | - name: Checkout code |
72 | 78 | uses: actions/checkout@{% endraw %}{{ gha_checkout }}{% raw %} |
73 | 79 |
|
@@ -180,7 +186,13 @@ jobs: |
180 | 186 | env: |
181 | 187 | UV_PYTHON: ${{ matrix.python-version }} |
182 | 188 |
|
183 | | - steps: |
| 189 | + steps:{% endraw %}{% if use_windows_in_ci %} |
| 190 | + - name: Allow long file paths |
| 191 | + if: runner.os == 'Windows' |
| 192 | + # Some tooling (e.g. vcrpy, syrupy) generates file names past the 260 character limit Windows |
| 193 | + # defaults to. This has to happen before the checkout that writes those files. |
| 194 | + run: git config --global core.longpaths true |
| 195 | +{% endif %}{% raw %} |
184 | 196 | - name: Checkout code |
185 | 197 | uses: actions/checkout@{% endraw %}{{ gha_checkout }}{% raw %} |
186 | 198 | - name: Setup python |
@@ -326,7 +338,13 @@ jobs: |
326 | 338 | env: |
327 | 339 | UV_PYTHON: ${{ matrix.python-version }} |
328 | 340 |
|
329 | | - steps: |
| 341 | + steps:{% endraw %}{% if use_windows_in_ci %} |
| 342 | + - name: Allow long file paths |
| 343 | + if: runner.os == 'Windows' |
| 344 | + # Some tooling (e.g. vcrpy, syrupy) generates file names past the 260 character limit Windows |
| 345 | + # defaults to. This has to happen before the checkout that writes those files. |
| 346 | + run: git config --global core.longpaths true |
| 347 | +{% endif %}{% raw %} |
330 | 348 | - name: Checkout code |
331 | 349 | uses: actions/checkout@{% endraw %}{{ gha_checkout }}{% raw %} |
332 | 350 | - name: Setup python |
|
0 commit comments