Skip to content

Commit

Permalink
ci: 优化 GitHub Actions 工作流中的依赖安装步骤
Browse files Browse the repository at this point in the history
- 在安装 Playwright 依赖时添加 sudo 前缀,确保权限充足
- 使用 poetry run 执行 pip install 和 playwright install,确保在正确的环境中运行
- 移除多余的空格和换行符,提高代码可读性
  • Loading branch information
molanp committed Dec 15, 2024
1 parent 9e09e21 commit d540f39
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/bot_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,10 @@ jobs:
- name: Install playwright
if: steps.cache-playwright.outputs.cache-hit != 'true'
run: |
apt-get update
apt-get install -y libgstreamer-plugins-base1.0-0 libgstreamer1.0-0 gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-libav flite x264 libx264-dev
pip install playwright
playwright install
sudo apt-get update
sudoapt-get install -y libgstreamer-plugins-base1.0-0 libgstreamer1.0-0 gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-libav flite x264 libx264-dev
poetry run pip install playwright
poetry run playwright install
- name: Run tests
run: poetry run pytest --cov=zhenxun --cov-report xml
Expand Down

0 comments on commit d540f39

Please sign in to comment.