@eletech[教程] 利用 Github Action 跑 Playwright 自动化测试/爬虫 中发帖

新建 .github/workflows/build.yml 文件,添加如下 playwright 配置: 
- name: 获取 Playwright 版本
id: playwright-version
run: |
$version = uv run python -c "import importlib.metadata; print(importlib.metadata.version('playwright'))"
echo "version=$version" >> $env:GITHUB_OUTPUT
echo "Playwright version: $version"

- name: 缓存 Playwright 浏览器
uses: actions/cache@v4
...