Use 'uv sync' instead of 'uv pip install' (install what's in uv.lock)

and adapt the cache key accordingly
This commit is contained in:
Dominik Jain authored and Dominik Jain committed 2026-02-04 18:57:13 +01:00
1 parent 603853a8b6
commit 8d38a32967
1 file changed
+2 -2
+2 -2
View File
@@ -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