From ca76d9b92e819e2e68d009d2fbe37c521ee5186e Mon Sep 17 00:00:00 2001 From: Ethan Smith Date: Thu, 26 Dec 2024 13:41:57 -0800 Subject: [PATCH] Use D drive for pytest on Windows to speed up test runs h/t to @ichard26 in this pip PR: https://github.com/pypa/pip/pull/13129 --- .github/workflows/test.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 97bc62e002c5..4db06d99df3b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -135,6 +135,12 @@ jobs: PYTEST_ADDOPTS: --color=yes steps: + + - name: Set TEMP to D:\ on Windows pytest runs + if: ${{startsWith(matrix.os, 'windows-') && startsWith(matrix.toxenv, 'py')}} + run: | + mkdir "D:\\Temp" + echo "TEMP=D:\\Temp" >> $env:GITHUB_ENV - uses: actions/checkout@v4 - name: Debug build