From c6833b918f63859243277937204bc8fa00bb7c86 Mon Sep 17 00:00:00 2001 From: Justus Kuhlmann Date: Mon, 1 Dec 2025 17:41:47 +0100 Subject: [PATCH] simplify with setup-uv --- .github/workflows/pytest.yaml | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/.github/workflows/pytest.yaml b/.github/workflows/pytest.yaml index 35cfd38..0857b57 100644 --- a/.github/workflows/pytest.yaml +++ b/.github/workflows/pytest.yaml @@ -18,7 +18,6 @@ jobs: runs-on: ubuntu-latest env: - UV_PYTHON: ${{ matrix.python-version }} UV_CACHE_DIR: /tmp/.uv-cache steps: - name: Check out the repository @@ -27,17 +26,10 @@ jobs: show-progress: true - name: Install uv uses: astral-sh/setup-uv@v7 - - name: Restore uv cache - uses: actions/cache@v4 with: - path: /tmp/.uv-cache - key: uv-${{ runner.os }}-${{ hashFiles('uv.lock') }} - restore-keys: | - uv-${{ runner.os }}-${{ hashFiles('uv.lock') }} - uv-${{ runner.os }} + python-version: ${{ matrix.python-version }} + enable-cache: true - name: Install corrlib run: uv sync --locked --all-extras --dev - name: Run tests run: uv run pytest tests - - name: Minimize uv cache - run: uv cache prune --ci