ref: docker build #221
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: Code Quality Checks | |
| on: | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| branches: | |
| - '*' | |
| jobs: | |
| ruff: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.11' | |
| - name: Install dependencies | |
| run: | | |
| export PIP_BREAK_SYSTEM_PACKAGES=1 | |
| python -m pip install --upgrade pip | |
| pip install uv ruff | |
| uv sync | |
| - name: Run Ruff Format | |
| run: | | |
| ruff format --check . | |
| - name: Run Ruff Check | |
| run: | | |
| ruff check . |