Skip to content

Commit

Permalink
ci: colocate uv cache on same drive
Browse files Browse the repository at this point in the history
Saving cache to D:\ is more performant than C:\
since workspace is located on D: drive.

Also hardlink does not work on different partitions.
  • Loading branch information
skshetry committed Sep 6, 2024
1 parent 7b8922b commit d5886d6
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,8 @@ jobs:
with:
enable-cache: true
cache-dependency-glob: pyproject.toml
cache-local-path: /tmp/uv-cache
- run: uv pip install -e ".[dev]" --system
env:
UV_LINK_MODE: ${{ runner.os == 'Windows' && 'symlink' || 'hardlink' }}

- name: Cache mypy
uses: actions/cache@v4
Expand Down Expand Up @@ -91,10 +90,9 @@ jobs:
with:
enable-cache: true
cache-dependency-glob: pyproject.toml
cache-local-path: /tmp/uv-cache
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
Expand Down

0 comments on commit d5886d6

Please sign in to comment.