Open-source Python library for AI browser agents, plus Browser Use Cloud: stealth browsers and a hosted agent API.
Python ai-agentsai-toolsbrowser-agentbrowser-automationbrowser-usecdpcloud-browsercomputer-useheadless-browserllmmcpplaywrightpythonremote-browserstealth-browserweb-automationweb-scraping
Update eval workflow to use ubuntu-latest and streamline dependency installation
Magnus Müllerc891af4ad11e
diff --git a/.github/workflows/eval.yaml b/.github/workflows/eval.yamlindex ac9d20f5e..f1b673334 100644--- a/.github/workflows/eval.yaml+++ b/.github/workflows/eval.yaml@@ -7,7 +7,7 @@ on:jobs:run_evaluation:- runs-on: blacksmith-4vcpu-ubuntu-2204+ runs-on: ubuntu-latesttimeout-minutes: 360env:IN_DOCKER: 'true'@@ -54,14 +54,10 @@ jobs:ref: ${{ steps.determine_ref.outputs.REF }}- name: Set up Python and uv- uses: useblacksmith/setup-uv@v4+ uses: astral-sh/setup-uv@v6with:enable-cache: true- cache-dependency-glob: |- **/pyproject.toml- **/*requirements*.txt- cache-suffix: "eval-deps"- prune-cache: false+ activate-environment: true- name: Install dependenciesrun: |@@ -69,41 +65,12 @@ jobs:uv sync --extra evalecho "Dependencies installed successfully"- - name: Verify Python Environment- run: |- echo "=== PYTHON ENVIRONMENT VERIFICATION ==="- echo "System Python:"- which python || echo "No system python found"- python --version 2>/dev/null || echo "No system python version"- echo ""- echo "UV Python:"- uv run which python- uv run python --version- echo ""- echo "UV Environment Info:"- uv run python -c "import sys; print(f'Python executable: {sys.executable}')"- uv run python -c "import sys; print(f'Python path: {sys.path[:3]}...')"- echo ""- echo "Virtual Environment:"- echo "VIRTUAL_ENV: ${VIRTUAL_ENV:-'Not set'}"- echo "PATH (first 3 entries): $(echo $PATH | cut -d: -f1-3)"- echo "=================================="-- name: Detect installed Playwright versionid: playwright_version- run: |- echo "=== DETECTING PLAYWRIGHT VERSION ==="- echo "Checking installed packages in UV environment..."- uv run python -m pip list | grep -i playwright || echo "Playwright not found in pip list"- echo ""- echo "Getting Playwright version via JSON..."- VERSION=$(uv run python -m pip list --format json | jq -r '.[] | select(.name == "playwright") | .version')- echo "Detected Playwright version: $VERSION"- echo "VERSION=$VERSION" >> $GITHUB_OUTPUT- echo "=================================="+ run: echo "VERSION=$(uv pip list --format json | jq -r '.[] | select(.name == "playwright") | .version')" >> $GITHUB_OUTPUT- name: Cache Playwright browsers- uses: useblacksmith/cache@v5+ uses: actions/cache@v4with:path: ~/.cache/ms-playwrightkey: ${{ runner.os }}-playwright-${{ steps.playwright_version.outputs.VERSION }}@@ -112,21 +79,9 @@ jobs:- name: Install Playwright browser dependenciesrun: |- echo "=== INSTALLING PLAYWRIGHT BROWSERS ==="- echo "System Playwright check:"- which playwright 2>/dev/null || echo "No system playwright found"- echo ""- echo "UV Playwright check:"- uv run which playwright- uv run playwright --version- echo ""echo "Installing Playwright browsers..."- uv run playwright install --no-shell chromium+ playwright install --no-shell chromiumecho "Playwright browsers installed successfully"- echo ""- echo "Verifying browser installation:"- ls -la ~/.cache/ms-playwright/ 2>/dev/null || echo "No playwright cache found"- echo "=================================="- name: Install Xvfb for headed modeif: github.event.client_payload.script_args.headless == 'false'@@ -222,7 +177,7 @@ jobs:# Build command using array for cleaner constructionCMD_ARGS=(- "uv" "run" "python" "eval/service.py"+ "python" "eval/service.py""--model" "$MODEL""--eval-model" "$EVAL_MODEL""--parallel-runs" "$PARALLEL_RUNS"@@ -308,20 +263,6 @@ jobs:echo "Command: ${{ steps.eval_command.outputs.FULL_COMMAND }}"echo "Starting time: $(date)"echo "Use Mind2Web Judge: ${{ github.event.client_payload.script_args.use_mind2web_judge }}"- echo ""- echo "=== FINAL ENVIRONMENT CHECK ==="- echo "Current working directory: $(pwd)"- echo "Python being used:"- uv run which python- uv run python --version- echo ""- echo "Key packages installed:"- uv run python -m pip list | grep -E "(browser-use|playwright|openai|anthropic)" || echo "Package check failed"- echo ""- echo "Environment variables (relevant):"- echo "OPENAI_API_KEY: ${OPENAI_API_KEY:+SET}"- echo "ANTHROPIC_API_KEY: ${ANTHROPIC_API_KEY:+SET}"- echo "IN_DOCKER: ${IN_DOCKER}"echo "============================"# Set up signal handlers and run the command