Skip to content

fix: bump astral-sh/setup-uv from 6 to 7 #7

fix: bump astral-sh/setup-uv from 6 to 7

fix: bump astral-sh/setup-uv from 6 to 7 #7

Workflow file for this run

name: Build uv cache
on:
push:
branches:
- '**'
paths:
- 'uv.lock'
- 'pyproject.toml'
workflow_dispatch:
jobs:
build-cache:
runs-on: ubuntu-latest
env:
UV_VERSION: '0.9.27'
PYTHON_VERSION: '3.13'
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Install uv
uses: astral-sh/setup-uv@v7
with:
version: ${{ env.UV_VERSION }}
python-version: ${{ env.PYTHON_VERSION }}
enable-cache: false
- name: Install dependencies and populate cache
run: |
echo "Building global UV cache..."
uv sync
echo "Cache populated successfully"
- name: Save uv caches
uses: actions/cache/save@v5
with:
path: |
~/.cache/uv
~/.local/share/uv
.venv
key: uv-${{ github.ref_name }}-${{ env.UV_VERSION }}-${{ env.PYTHON_VERSION }}-${{ hashFiles('pyproject.toml', 'uv.lock') }}