SKH-70: 完善 API 文档和使用示例 #8
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: Workflow Lint | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.11" | |
| - name: Install lint dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| python -m pip install pyyaml build twine | |
| - name: Parse workflow YAML files | |
| run: | | |
| python scripts/check_workflow_yaml.py | |
| - name: Run actionlint | |
| uses: rhysd/actionlint@v1.7.11 | |
| - name: Check version consistency | |
| run: | | |
| python scripts/check_version_consistency.py | |
| - name: Check third-party patch consistency | |
| run: | | |
| python scripts/check_third_party_patch.py | |
| - name: Packaging metadata check (sdist) | |
| run: | | |
| python -m build --sdist --outdir /tmp/dist_meta | |
| python -m twine check /tmp/dist_meta/* |