Skip to content

Open-source LLM knowledge platform: turn raw documents into a queryable RAG, an autonomous reasoning agent, and a self-maintaining Wiki.

ci(docreader): install Playwright WebKit for TestReadURL

wizardchen8db2e4f3816a
diff --git a/.github/workflows/docreader.yml b/.github/workflows/docreader.yml
index c98c9125b..ff78a1c7d 100644
--- a/.github/workflows/docreader.yml
+++ b/.github/workflows/docreader.yml
@@ -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 &