Commit Graph

9 Commits

Author SHA1 Message Date
Laith Weinberger
e539ee7b73 use contents: read instead of empty permissions on CI workflows 2026-03-22 17:10:49 -04:00
Laith Weinberger
6f6f08d501 restrict default GITHUB_TOKEN permissions on CI workflows 2026-03-22 16:45:36 -04:00
ShawnPana
3318f56318 simplify CLI infrastructure: single-session daemon, remove install modes, streamline setup
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-15 10:12:41 -07:00
ShawnPana
5ccfc44da8 refactor: move install.sh to browser_use/skill_cli/
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-12 10:19:45 -08:00
ShawnPana
b7468fa887 fix(ci): use macos-14 instead of deprecated macos-13 2026-02-10 17:48:21 -08:00
ShawnPana
086e745323 fix(ci): Windows Unicode and macOS shell config issues
- Add PYTHONIOENCODING=utf-8 env for Windows to handle Unicode
  checkmarks and other special characters
- Remove "Source shell config" steps that fail on missing files
- Simplify to just "Add to PATH" since GITHUB_PATH is sufficient

Fixes: UnicodeEncodeError on Windows for checkmark character
Fixes: macOS failing on missing ~/.zshrc

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-10 17:40:11 -08:00
ShawnPana
639c409623 fix(ci): use fork repo for PR tests, remove cloudflared checks
- Use github.event.pull_request.head.repo.full_name for PRs to get
  the fork's repo where the branch actually exists
- Remove cloudflared verification from uv pip/uvx tests since
  browser-use install only installs Chromium, not cloudflared

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-10 17:35:52 -08:00
ShawnPana
aaf9362d1e fix(install): add Windows and CI compatibility
- Add get_venv_bin_dir() and activate_venv() helpers for cross-platform
  venv path handling (Scripts on Windows, bin on Unix)
- Replace all hardcoded venv activation calls with activate_venv
- Auto-install Python in non-interactive mode (CI) instead of prompting
  from /dev/tty which doesn't exist in CI environments
- Update configure_path grep to match both Windows and Unix venv paths
- Add setup-python to Linux CI jobs for faster, more reliable installs

Fixes Windows test failures with:
  install.sh: line 355: .../bin/activate: No such file or directory

Fixes Linux test failures with:
  install.sh: line 650: /dev/tty: No such device or address

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-10 17:33:52 -08:00
ShawnPana
37f58b4f85 ci: add comprehensive install script tests
Test install.sh across all platforms (Linux, macOS, Windows) with all
modes (--remote-only, --local-only, --full). Also test alternative
install methods (uv pip install, uvx).

Verifies:
- CLI works after install
- install-config.json has correct modes
- Chromium installed for local/full modes
- cloudflared installed for remote/full modes
- browser-use doctor passes

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-10 17:26:31 -08:00