🔧 chore(workflow): require Python 3.11 in runners
This commit is contained in:
@@ -118,7 +118,7 @@ jobs:
|
||||
# 注:经 workflow_run 触发,事件 payload 为 workflow_run,不含 PR title;
|
||||
# lint 脚本会回落到 head commit message 校验(PR 标题本身不再校验)。
|
||||
echo "🔍 检查 commit message 规范(上游事件: $SOURCE_EVENT)..."
|
||||
python3 .gitea/ci/commit_message_lint.py
|
||||
python3.11 .gitea/ci/commit_message_lint.py
|
||||
echo "✅ Lint 检查通过"
|
||||
|
||||
- name: 🧪 运行全量测试
|
||||
@@ -135,14 +135,14 @@ jobs:
|
||||
npm ci --ignore-scripts --no-audit --no-fund --no-bin-links
|
||||
|
||||
echo "📋 覆盖:CLI、subtree/snapshot 部署路线、模板同步、文档一致性"
|
||||
python3 -m unittest discover -s test -p "test_*.py" -v
|
||||
python3.11 -m unittest discover -s test -p "test_*.py" -v
|
||||
echo "✅ Python 测试通过"
|
||||
|
||||
echo "========================================"
|
||||
echo "🧭 TSL Syntax Reference 结构检查"
|
||||
echo "========================================"
|
||||
|
||||
python3 skills/tsl-syntax-reference/scripts/lookup.py --check
|
||||
python3.11 skills/tsl-syntax-reference/scripts/lookup.py --check
|
||||
echo "✅ TSL Syntax Reference 结构检查通过"
|
||||
|
||||
echo "========================================"
|
||||
@@ -156,7 +156,7 @@ jobs:
|
||||
echo "🔗 文档链接检查"
|
||||
echo "========================================"
|
||||
|
||||
python3 test/integration/check_doc_links.py
|
||||
python3.11 test/integration/check_doc_links.py
|
||||
echo "✅ 文档链接检查通过"
|
||||
echo "🎉 所有测试完成"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user