Skip to content

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

fix github actions CI tests

Nick Sweeting062654e532bc
diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml
index cbc75c6ea..700b3eb19 100644
--- a/.github/workflows/test.yaml
+++ b/.github/workflows/test.yaml
@@ -18,26 +18,27 @@ jobs:
strategy:
matrix:
test:
- - browser/patchright
- - browser/user_binary
- - browser/remote_cdp
- - models/openai
- - models/google
- - models/anthropic
- - models/azure
- - models/deepseek
- - models/grok
- - functionality/click
- - functionality/tabs
- - functionality/input
- - functionality/scroll
- - functionality/upload
- - functionality/download
- - functionality/save
- - functionality/vision
- - functionality/memory
- - functionality/planner
- - functionality/hooks
+ # TODO:
+ # - browser/patchright
+ # - browser/user_binary
+ # - browser/remote_cdp
+ # - models/openai
+ # - models/google
+ # - models/anthropic
+ # - models/azure
+ # - models/deepseek
+ # - models/grok
+ # - functionality/click
+ # - functionality/tabs
+ # - functionality/input
+ # - functionality/scroll
+ # - functionality/upload
+ # - functionality/download
+ # - functionality/save
+ # - functionality/vision
+ # - functionality/memory
+ # - functionality/planner
+ # - functionality/hooks
- test_controller
- test_tab_management
- test_sensitive_data
@@ -48,7 +49,16 @@ jobs:
enable-cache: true
activate-environment: true
- - run: uv run patchright install chrome
- if: matrix.test == 'test_controller'
+ - name: Detect installed Playwright or Patchright version
+ run: echo "PLAYWRIGHT_VERSION=$(grep -oP 'patchright>=\K[0-9.]+' pyproject.toml)" >> $GITHUB_ENV
- - run: uv run --with=dotenv pytest tests/${{ matrix.test }}.py || true
+ - name: Cache playwright binaries
+ uses: actions/cache@v3
+ with:
+ path: |
+ ~/.cache/ms-playwright
+ key: ${{ runner.os }}-playwright-${{ env.PLAYWRIGHT_VERSION }}
+
+ - run: uv run patchright install chrome --with-deps
+
+ - run: uv run --with=dotenv pytest tests/${{ matrix.test }}.py