From 8d38a3296774770e13f0f2d920881736c6f69342 Mon Sep 17 00:00:00 2001 From: Dominik Jain Date: Wed, 4 Feb 2026 18:21:16 +0100 Subject: [PATCH] Use 'uv sync' instead of 'uv pip install' (install what's in uv.lock) and adapt the cache key accordingly --- .github/workflows/pytest.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml index b3470fd1..a3d98b44 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/pytest.yml @@ -58,7 +58,7 @@ jobs: uses: actions/cache@v3 with: path: .venv - key: uv-venv-${{ runner.os }}-${{ matrix.python-version }}-${{ hashFiles('uv.lock') }} + key: uv-venv-${{ runner.os }}-${{ matrix.python-version }}-lock-${{ hashFiles('uv.lock') }} - name: Create virtual environment shell: bash run: | @@ -67,7 +67,7 @@ jobs: fi - name: Install Python environment shell: bash - run: uv pip install -e ".[dev]" + run: uv sync --extra dev --locked - name: List Python dependencies shell: bash run: uv pip list