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: Ruff Code Quality Checks | |
on: | |
push: | |
branches: ["main", "staging"] | |
pull_request: | |
branches: ["main", "staging"] | |
jobs: | |
ruff-check: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: false | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.13" | |
- name: Install uv | |
uses: astral-sh/setup-uv@v4 | |
with: | |
version: "latest" | |
- name: Install dependencies | |
run: uv sync | |
- name: Run ruff format check | |
run: uvx ruff format --check . | |
- name: Run ruff lint check | |
run: uvx ruff check . |