Skip to content

Open-source Python library for AI browser agents, plus Browser Use Cloud: stealth browsers and a hosted agent API.

Cache uv

Magnus Müllerad6dac41c8d8
diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml
index 5f9e05e27..1ca443863 100644
--- a/.github/workflows/test.yaml
+++ b/.github/workflows/test.yaml
@@ -117,16 +117,17 @@ jobs:
enable-cache: true
activate-environment: true
- - name: Cache uv packages
+ - name: Cache uv packages and venv
uses: actions/cache@v4
with:
path: |
~/.cache/uv
- key: ${{ runner.os }}-uv-${{ hashFiles('uv.lock') }}
+ .venv
+ key: ${{ runner.os }}-uv-venv-${{ hashFiles('uv.lock') }}
restore-keys: |
- ${{ runner.os }}-uv-
+ ${{ runner.os }}-uv-venv-
- - run: uv sync --dev --all-extras
+ - run: uv sync --frozen --dev --all-extras
- name: Get week number for cache key
id: week
@@ -200,16 +201,17 @@ jobs:
enable-cache: true
activate-environment: true
- - name: Cache uv packages
+ - name: Cache uv packages and venv
uses: actions/cache@v4
with:
path: |
~/.cache/uv
- key: ${{ runner.os }}-uv-${{ hashFiles('uv.lock') }}
+ .venv
+ key: ${{ runner.os }}-uv-venv-${{ hashFiles('uv.lock') }}
restore-keys: |
- ${{ runner.os }}-uv-
+ ${{ runner.os }}-uv-venv-
- - run: uv sync --dev --all-extras
+ - run: uv sync --frozen --dev --all-extras
- name: Get week number for cache key
id: week