diff --git a/.github/workflows/bot_check.yml b/.github/workflows/bot_check.yml index ac532629..1a5ed8cf 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: | + poetry 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 diff --git a/pyproject.toml b/pyproject.toml index 990bc92b..53a6af78 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "zhenxun_bot" -version = "0.1.1" +version = "0.2.4" description = "基于 Nonebot2 和 go-cqhttp 开发,以 postgresql 作为数据库,非常可爱的绪山真寻bot" authors = ["HibiKier <775757368@qq.com>"] license = "AGPL" @@ -47,10 +47,10 @@ python-multipart = "^0.0.9" aiocache = "^0.12.2" py-cpuinfo = "^9.0.0" nonebot-plugin-uninfo = "^0.4.1" -nonebot-plugin-alconna = "^0.53.1" +nonebot-plugin-alconna = "^0.54.0" [tool.poetry.dev-dependencies] -nonebug = "^0.3.2" +nonebug = "^0.4.2" pytest-cov = "^5.0.0" pytest-mock = "^3.6.1" pytest-asyncio = "^0.23.5"