From 39d39b88c279a638e2f9779b25c17b75594cb75e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Saugat=20Pachhai=20=28=E0=A4=B8=E0=A5=8C=E0=A4=97=E0=A4=BE?= =?UTF-8?q?=E0=A4=A4=29?= Date: Fri, 6 Sep 2024 11:07:38 +0545 Subject: [PATCH] ci: colocate uv cache on same drive Saving cache to D:\ is more performant than C:\ since workspace is located on D: drive. Also hardlink does not work on different partitions. --- .github/workflows/tests.yaml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index b933e60c8a..6eab8383e2 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -35,9 +35,8 @@ jobs: with: enable-cache: true cache-dependency-glob: pyproject.toml + cache-local-path: ${{ runner.os == 'Windows' && 'D:\\uv-cache' || '.cache/uv' }} - run: uv pip install -e ".[dev]" --system - env: - UV_LINK_MODE: ${{ runner.os == 'Windows' && 'symlink' || 'hardlink' }} - name: Cache mypy uses: actions/cache@v4 @@ -91,10 +90,9 @@ jobs: with: enable-cache: true cache-dependency-glob: pyproject.toml + cache-local-path: ${{ runner.os == 'Windows' && 'D:\\uv-cache' || '.cache/uv' }} cache-suffix: ${{ matrix.pyv }} - run: uv pip install -e ".[dev]" pytest-split --system - env: - UV_LINK_MODE: ${{ runner.os == 'Windows' && 'symlink' || 'hardlink' }} - name: run tests timeout-minutes: 40