mirror of
https://github.com/snowy-yang/qqbotsdk.git
synced 2026-10-21 10:08:50 +00:00
feat: GitHub Actions——检测与文档部署落地 GitHub 主仓库
Gitea runner 六轮实跑无法稳定(checkout 间歇失败、镜像工具链不明、 secrets 未生效),转 GitHub 为主仓库:.github/workflows 与 .gitea/ 并存,检测流水在 GitHub 上补齐 pytest。部署复用 scripts/deploy_docs.sh (wrangler Direct Upload,secrets 在 GitHub 仓库配置)。
This commit is contained in:
1 parent
a09d1788cd
commit
6897205f6b
2 files changed
+62
No files matched your search
@@ -0,0 +1,33 @@
|
||||
name: 代码检测
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
pull_request:
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
lint:
|
||||
name: ruff + pyright + pytest
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: 检出代码
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: 安装 uv 与 Python 3.13
|
||||
uses: astral-sh/setup-uv@v5
|
||||
with:
|
||||
python-version: "3.13"
|
||||
enable-cache: true
|
||||
|
||||
- name: 同步依赖(含 dev 组)
|
||||
run: uv sync
|
||||
|
||||
- name: ruff 静态检查
|
||||
run: uv run ruff check src tests examples
|
||||
|
||||
- name: pyright 类型检查
|
||||
run: uv run pyright
|
||||
|
||||
- name: pytest 单元测试
|
||||
run: uv run pytest
|
||||
Reference in new issue
Block a user