Skip to content

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

Add explicit uv package caching to speed up CI

Magnus Müllere6cb8e7587a5
diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml
index 0ae86f669..26c50fbe3 100644
--- a/.github/workflows/test.yaml
+++ b/.github/workflows/test.yaml
@@ -111,6 +111,15 @@ jobs:
enable-cache: true
activate-environment: true
+ - name: Cache uv packages
+ uses: actions/cache@v4
+ with:
+ path: |
+ ~/.cache/uv
+ key: ${{ runner.os }}-uv-${{ hashFiles('uv.lock') }}
+ restore-keys: |
+ ${{ runner.os }}-uv-
+
- run: uv sync --dev --all-extras
- name: Cache chromium binaries
@@ -169,6 +178,15 @@ jobs:
enable-cache: true
activate-environment: true
+ - name: Cache uv packages
+ uses: actions/cache@v4
+ with:
+ path: |
+ ~/.cache/uv
+ key: ${{ runner.os }}-uv-${{ hashFiles('uv.lock') }}
+ restore-keys: |
+ ${{ runner.os }}-uv-
+
- run: uv sync --dev --all-extras
- name: Cache chromium binaries