Phase 1 foundation: kherud fork + repo scaffolding #12
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
| # Lint Python scripts under scripts/ — fast, no Java, no model deps. | |
| name: scripts-ci | |
| on: | |
| push: | |
| branches: [main] | |
| paths: | |
| - "scripts/**" | |
| - ".github/workflows/scripts-ci.yml" | |
| pull_request: | |
| paths: | |
| - "scripts/**" | |
| - ".github/workflows/scripts-ci.yml" | |
| concurrency: | |
| group: scripts-ci-${{ github.ref }} | |
| cancel-in-progress: true | |
| permissions: | |
| contents: read | |
| jobs: | |
| lint: | |
| name: lint | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 5 | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: actions/setup-python@v6 | |
| with: | |
| python-version: "3.11" | |
| cache: pip | |
| cache-dependency-path: scripts/requirements.txt | |
| - name: Install lint tooling | |
| run: pip install -r scripts/requirements.txt | |
| - name: Compile-check | |
| run: python3 -m py_compile scripts/fetch_models.py scripts/verify_models.py | |
| - name: Ruff | |
| run: ruff check scripts/ | |
| - name: Pyright | |
| run: pyright --warnings scripts/ |