mirror of
https://github.com/snowy-yang/qqbotsdk.git
synced 2026-10-21 11:34:48 +00:00
首次 CI 实跑两条工作流均失败且匿名读不到日志:检测工作流 26s 即败、 落在早期步骤,优先怀疑 enable-cache 触发的 Actions 缓存服务问题 (Gitea 对该 API 的支持不完善,post 步骤常因此失败)。先摘除该选项 再观察;部署工作流顺带改显示名并借文件变更重新触发。
31 lines
670 B
YAML
31 lines
670 B
YAML
name: 代码检测
|
||
|
||
on:
|
||
push:
|
||
branches: [main]
|
||
pull_request:
|
||
workflow_dispatch:
|
||
|
||
jobs:
|
||
lint:
|
||
name: ruff + pyright
|
||
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:Gitea 的 Actions 缓存服务不完善,常导致任务末尾失败
|
||
|
||
- name: 同步依赖(含 dev 组)
|
||
run: uv sync
|
||
|
||
- name: ruff 静态检查
|
||
run: uv run ruff check src tests examples
|
||
|
||
- name: pyright 类型检查
|
||
run: uv run pyright
|