Files
qqbotsdk/.gitea/workflows/ci.yml
T
snowy-yang 94a37011f0 fix: CI 回归直连 pypi(探测证实 runner 在海外、github/pypi/npm 全通),部署加 secrets 在场探测
probe.yml 结果:github/uv-release/pypi/npm/npmmirror 全部 200、CF API
可达(404 为根路径正常返回),仅 tuna 403——tuna 只服务大陆 IP,说明
runner 在海外,上一轮的镜像化是误诊且 pip 走 tuna 被 403 直接打断。
ci.yml 回归最简形态:pip install uv + uv sync,零镜像零 github 依赖。

部署工作流两轮均死于下载完 wrangler 之后、网络与 wrangler 均无嫌疑,
指向 secrets 配置问题;加一步把 CLOUDFLARE_API_TOKEN/ACCOUNT_ID 的
set/MISSING 写进 commit status(不泄露值),下次运行即可确诊。
2026-09-24 20:34:07 +08:00

30 lines
651 B
YAML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
name: 代码检测
on:
push:
branches: [main]
pull_request:
workflow_dispatch:
jobs:
lint:
name: ruff + pyright
runs-on: ubuntu-latest
steps:
- name: 检出代码
uses: actions/checkout@v4
# runner 出网探测显示 github/pypi 均可达(见 probe.yml),无需镜像:
# pip 从 pypi 装 uv,uv sync 自取 CPython 与依赖
- name: 安装 uv
run: pip install uv
- name: 同步依赖(含 dev 组)
run: uv sync
- name: ruff 静态检查
run: uv run ruff check src tests examples
- name: pyright 类型检查
run: uv run pyright