docs: 对外可信度收口 + A/B 降级为 Deferred(设计已记,暂不实现) #15
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: doctor | |
| # 防退化闸门:每次 push / PR 自动跑 substrate-doctor + 编译所有脚本。 | |
| # 零依赖——只用 GitHub runner 自带的 python3 标准库(不装 PyYAML 等)。 | |
| on: | |
| push: | |
| pull_request: | |
| jobs: | |
| doctor: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Compile reference scripts (syntax gate) | |
| run: find skills migrations -name '*.py' -print0 | xargs -0 python3 -m py_compile | |
| - name: substrate-doctor on examples/minimal (must be 0 error) | |
| run: python3 skills/substrate-doctor/doctor.py examples/minimal | |
| - name: substrate-doctor on template (must be 0 error) | |
| run: python3 skills/substrate-doctor/doctor.py template | |
| - name: regression tests (locks the review-fixed bugs against regression) | |
| run: sh tests/run-tests.sh |