Skip to content

Commit

Permalink
fix uv cache
Browse files Browse the repository at this point in the history
  • Loading branch information
beaugunderson committed Jan 23, 2025
1 parent ad1e27f commit 96ae3cf
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions .github/actions/install-python-and-uv/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,17 +30,8 @@ runs:
echo "PYTHON_VERSION=${{ steps.python-setup.outputs.python-version }}" >> $GITHUB_ENV
shell: bash

# Cache the installation of uv itself.
# This prevents the workflow from installing uv every time, which can be slow.
- name: Cache uv install
id: cache-uv
uses: actions/cache@v4
with:
path: ~/.local
key: ${{runner.os}}-py${{steps.python-setup.outputs.python-version}}-uv-${{inputs.UV_VERSION}}

- name: Install uv
if: steps.cache-uv.outputs.cache-hit != 'true'
uses: astral-sh/setup-uv@v5
with:
enable-cache: true
version: ${{ inputs.UV_VERSION }}

0 comments on commit 96ae3cf

Please sign in to comment.