ci(docreader): install Playwright WebKit for TestReadURL

The Go client URL test was a false positive: missing WebKit used to
surface as markdown content. #2883 raises instead, so CI must install
the same browser the DocReader image uses.
main
wizardchen 2026-08-31 13:36:10 +08:00 committed by lyingbug
parent 91186b81b7
commit 8db2e4f381
1 changed files with 13 additions and 0 deletions

View File

@ -69,6 +69,19 @@ jobs:
- name: Download Go modules
run: go mod download
# TestReadURL drives the live WebParser (Playwright WebKit). Without the
# browser binary, scrape used to return "Error parsing web page: …" as
# markdown and the Go client treated that as success. After #2883 the
# parser raises, so CI must install WebKit the same way the image does.
- name: Cache Playwright browsers
uses: actions/cache@v4
with:
path: ~/.cache/ms-playwright
key: ${{ runner.os }}-playwright-webkit-${{ hashFiles('docreader/uv.lock') }}
- name: Install Playwright WebKit
run: uv run --project docreader --python ${{ env.PYTHON_VERSION }} python -m playwright install --with-deps webkit
- name: Start DocReader gRPC server
run: |
uv run --project docreader --python ${{ env.PYTHON_VERSION }} python -m docreader.main &