mirror of
https://github.com/snowy-yang/qqbotsdk.git
synced 2026-10-21 13:46:18 +00:00
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(不泄露值),下次运行即可确诊。
This commit is contained in:
1 parent
2916fc5902
commit
94a37011f0
2 files changed
+19
-8
No files matched your search
@@ -14,18 +14,13 @@ jobs:
|
||||
- name: 检出代码
|
||||
uses: actions/checkout@v4
|
||||
|
||||
# 不用 setup-uv:它要从 github.com 拉 uv 二进制与 CPython——runner
|
||||
# 主机对 github 的连通性不可靠(见 probe.yml 探测)。改走 pip/tuna
|
||||
# 装 uv,CPython 走 npmmirror 的 python-build-standalone 镜像,
|
||||
# 包索引走 tuna。
|
||||
# runner 出网探测显示 github/pypi 均可达(见 probe.yml),无需镜像:
|
||||
# pip 从 pypi 装 uv,uv sync 自取 CPython 与依赖
|
||||
- name: 安装 uv
|
||||
run: pip install -i https://pypi.tuna.tsinghua.edu.cn/simple uv
|
||||
run: pip install uv
|
||||
|
||||
- name: 同步依赖(含 dev 组)
|
||||
run: uv sync
|
||||
env:
|
||||
UV_DEFAULT_INDEX: https://pypi.tuna.tsinghua.edu.cn/simple
|
||||
UV_PYTHON_INSTALL_MIRROR: https://registry.npmmirror.com/-/binary/python-build-standalone
|
||||
|
||||
- name: ruff 静态检查
|
||||
run: uv run ruff check src tests examples
|
||||
|
||||
Reference in new issue
Block a user