ci: add GitHub Actions for Next.js build and Python lint #2
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: Python Lint | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| - rebranding/bishop-state | |
| paths: | |
| - "ai_model/**" | |
| - "operations/**" | |
| - "requirements.txt" | |
| jobs: | |
| lint: | |
| name: Ruff lint | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.11" | |
| - name: Install ruff | |
| run: pip install ruff | |
| - name: Lint | |
| run: ruff check ai_model/ operations/ |