Skip to content

ci: 避免格式错误回显资料内容并修复 Python 环境选择 - #16

Merged
mattheliu merged 1 commit into
mainfrom
fix/ci-safe-record-errors
Oct 6, 2026
Merged

mattheliu merged 1 commit into
mainfrom
fix/ci-safe-record-errors

Conversation

@mattheliu

Copy link
Copy Markdown
Member

YAML 解析失败时,PyYAML 原始异常会包含出错行;非法日期也可能将字段值写进公开 CI 日志。本修改只输出文件位置及修正要求,保留正常校验结果。

同时让 npm test 使用 PYTHON 指定的解释器,解决仅在虚拟环境安装 PyYAML 时仍调用系统 Python 的问题。

验证:4 项行为回归通过,覆盖格式错误不回显原文、指定 Python 的调用与退出码、真实记录公开范围和双语资料链接;实际 main 预览构建通过(100 个页面);差异空白检查通过。

不包含 PR #14 的资料导入,资料来源复核与 GitHub 历史清理仍单独处理。

@mattheliu
mattheliu merged commit 2e190da into main Oct 6, 2026
1 check passed
@mattheliu
mattheliu deleted the fix/ci-safe-record-errors branch October 6, 2026 21:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant