Dev #48
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: Staging Lint | |
| on: | |
| push: | |
| branches: [staging] | |
| pull_request: | |
| branches: [staging] | |
| jobs: | |
| ruff: | |
| name: Ruff (format + check) | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.10" | |
| - name: Install ruff | |
| # Pinned: unpinned latest broke CI when ruff 0.16 started formatting | |
| # markdown code blocks and expanded its default lint rules. Bump | |
| # deliberately (upgrade, run `ruff format .`, commit both together). | |
| run: pip install ruff==0.16.1 | |
| - name: Check formatting | |
| run: ruff format --check . | |
| - name: Run ruff check | |
| run: ruff check . | |
| smoke: | |
| name: Smoke (syntax + imports) | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.10" | |
| - name: Byte-compile source tree | |
| run: python -m compileall -q app agent_core agents decorators skills |