From 2b77e313ec23895b131cb0ad64ea309835868dc4 Mon Sep 17 00:00:00 2001 From: molanp <104612722+molanp@users.noreply.github.com> Date: Mon, 16 Dec 2024 23:04:06 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dbot-check=E5=B7=A5=E4=BD=9C?= =?UTF-8?q?=E6=B5=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/bot_check.yml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/.github/workflows/bot_check.yml b/.github/workflows/bot_check.yml index ac532629..8e04f5cc 100644 --- a/.github/workflows/bot_check.yml +++ b/.github/workflows/bot_check.yml @@ -2,13 +2,13 @@ name: 检查bot是否运行正常 on: push: - branches: ["dev", "main"] + branches: ["main"] paths: - zhenxun/** - tests/** - bot.py pull_request: - branches: ["dev", "main"] + branches: ["main"] paths: - zhenxun/** - tests/** @@ -55,8 +55,17 @@ jobs: if: steps.cache-poetry.outputs.cache-hit != 'true' run: | rm -rf poetry.lock - poetry source remove ali + poetry source remove aliyun poetry install --no-root + + - name: Install playwright + if: steps.cache-playwright.outputs.cache-hit != 'true' + run: | + portey run sudo apt-get update + poetry run sudo 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 + poetry run sudo playwright install-deps + poetry run pip install playwright + poetry run sudo playwright install - name: Run tests run: poetry run pytest --cov=zhenxun --cov-report xml