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>
This commit is contained in:
ShawnPana
2026-02-10 17:40:11 -08:00
parent 639c409623
commit 086e745323

View File

@@ -48,9 +48,8 @@ jobs:
- name: Run install.sh ${{ matrix.mode }}
run: bash install.sh ${{ matrix.mode }}
- name: Source shell config
- name: Add to PATH
run: |
source ~/.bashrc || true
echo "$HOME/.browser-use-env/bin" >> $GITHUB_PATH
echo "$HOME/.local/bin" >> $GITHUB_PATH
@@ -119,9 +118,8 @@ jobs:
- name: Run install.sh ${{ matrix.mode }}
run: bash install.sh ${{ matrix.mode }}
- name: Source shell config
- name: Add to PATH
run: |
source ~/.zshrc || source ~/.bashrc || true
echo "$HOME/.browser-use-env/bin" >> $GITHUB_PATH
echo "$HOME/.local/bin" >> $GITHUB_PATH
@@ -183,6 +181,9 @@ jobs:
defaults:
run:
shell: bash
env:
# Fix Unicode output on Windows (checkmarks, etc.)
PYTHONIOENCODING: utf-8
steps:
- uses: actions/checkout@v4