mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2025-12-15 14:22:55 +08:00
修复bot-check工作流 (#1777)
This commit is contained in:
parent
5956ec1148
commit
91352e4f3a
15
.github/workflows/bot_check.yml
vendored
15
.github/workflows/bot_check.yml
vendored
@ -2,13 +2,13 @@ name: 检查bot是否运行正常
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: ["dev", "main"]
|
branches: ["main"]
|
||||||
paths:
|
paths:
|
||||||
- zhenxun/**
|
- zhenxun/**
|
||||||
- tests/**
|
- tests/**
|
||||||
- bot.py
|
- bot.py
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: ["dev", "main"]
|
branches: ["main"]
|
||||||
paths:
|
paths:
|
||||||
- zhenxun/**
|
- zhenxun/**
|
||||||
- tests/**
|
- tests/**
|
||||||
@ -55,8 +55,17 @@ jobs:
|
|||||||
if: steps.cache-poetry.outputs.cache-hit != 'true'
|
if: steps.cache-poetry.outputs.cache-hit != 'true'
|
||||||
run: |
|
run: |
|
||||||
rm -rf poetry.lock
|
rm -rf poetry.lock
|
||||||
poetry source remove ali
|
poetry source remove aliyun
|
||||||
poetry install --no-root
|
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
|
- name: Run tests
|
||||||
run: poetry run pytest --cov=zhenxun --cov-report xml
|
run: poetry run pytest --cov=zhenxun --cov-report xml
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
[tool.poetry]
|
[tool.poetry]
|
||||||
name = "zhenxun_bot"
|
name = "zhenxun_bot"
|
||||||
version = "0.1.1"
|
version = "0.2.4"
|
||||||
description = "基于 Nonebot2 和 go-cqhttp 开发,以 postgresql 作为数据库,非常可爱的绪山真寻bot"
|
description = "基于 Nonebot2 和 go-cqhttp 开发,以 postgresql 作为数据库,非常可爱的绪山真寻bot"
|
||||||
authors = ["HibiKier <775757368@qq.com>"]
|
authors = ["HibiKier <775757368@qq.com>"]
|
||||||
license = "AGPL"
|
license = "AGPL"
|
||||||
@ -47,10 +47,10 @@ python-multipart = "^0.0.9"
|
|||||||
aiocache = "^0.12.2"
|
aiocache = "^0.12.2"
|
||||||
py-cpuinfo = "^9.0.0"
|
py-cpuinfo = "^9.0.0"
|
||||||
nonebot-plugin-uninfo = "^0.4.1"
|
nonebot-plugin-uninfo = "^0.4.1"
|
||||||
nonebot-plugin-alconna = "^0.53.1"
|
nonebot-plugin-alconna = "^0.54.0"
|
||||||
|
|
||||||
[tool.poetry.dev-dependencies]
|
[tool.poetry.dev-dependencies]
|
||||||
nonebug = "^0.3.2"
|
nonebug = "^0.4.2"
|
||||||
pytest-cov = "^5.0.0"
|
pytest-cov = "^5.0.0"
|
||||||
pytest-mock = "^3.6.1"
|
pytest-mock = "^3.6.1"
|
||||||
pytest-asyncio = "^0.23.5"
|
pytest-asyncio = "^0.23.5"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user