From d540f39fa714f85e2ec2c40dd32635af06f10f21 Mon Sep 17 00:00:00 2001 From: molanp <104612722+molanp@users.noreply.github.com> Date: Sun, 15 Dec 2024 15:59:13 +0800 Subject: [PATCH] =?UTF-8?q?ci:=20=E4=BC=98=E5=8C=96=20GitHub=20Actions=20?= =?UTF-8?q?=E5=B7=A5=E4=BD=9C=E6=B5=81=E4=B8=AD=E7=9A=84=E4=BE=9D=E8=B5=96?= =?UTF-8?q?=E5=AE=89=E8=A3=85=E6=AD=A5=E9=AA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在安装 Playwright 依赖时添加 sudo 前缀,确保权限充足 - 使用 poetry run 执行 pip install 和 playwright install,确保在正确的环境中运行 - 移除多余的空格和换行符,提高代码可读性 --- .github/workflows/bot_check.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/bot_check.yml b/.github/workflows/bot_check.yml index dece3ccc..5ca7e8fa 100644 --- a/.github/workflows/bot_check.yml +++ b/.github/workflows/bot_check.yml @@ -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