Skip to content

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

add test_controller test to github workflows

Anirudha619d523434d0028
diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml
index 54d01519c..b6a9b3635 100644
--- a/.github/workflows/test.yaml
+++ b/.github/workflows/test.yaml
@@ -38,8 +38,18 @@ jobs:
- functionality/memory
- functionality/planner
- functionality/hooks
+ - test_controller
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v5
- - run: uv run --with=dotenv pytest tests/${{ matrix.test }}.py || true
+ - name: Setup virtual environment and install dependencies
+ if: matrix.test == 'test_controller'
+ run: |
+ uv venv
+ uv pip install -e .
+ uv pip install patchright
+ # Install patchright browsers
+ uv run patchright install chrome
+ - name: Run tests
+ run: uv run --with=dotenv pytest tests/${{ matrix.test }}.py || true