📌 📄 内容摘要:
@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
...
────────── 链接信息 ──────────
🔗 论坛链接: linux.do
📎 访问地址: https://linux.do/t/topic/1328102/1
─────────────────────────────
📢 来源:LINUX DO