release: 补齐 CodeReview v0.1.0 分发材料 #3
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: 离线契约与回归 | |
| on: | |
| push: | |
| pull_request: | |
| permissions: | |
| contents: read | |
| jobs: | |
| offline: | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, macos-latest] | |
| python: ['3.11', '3.13'] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python }} | |
| - run: python -m pip install pytest==8.3.4 | |
| - run: python -m pytest -q | |
| - run: python scripts/validate_local.py | |
| - run: python -m compileall -q codereview_core scripts hooks | |
| # 不安装 OCR,不配置模型密钥;CI 只做离线验证。 |