Skip to content

Commit bfdab4f

Browse files
committed
ci: run backend ruff
1 parent 3b8dae5 commit bfdab4f

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ jobs:
5656
else
5757
CHANGED=$(git diff --name-only ${{ github.event.pull_request.base.sha }} ${{ github.event.pull_request.head.sha }})
5858
fi
59-
if echo "$CHANGED" | grep -q '^backend/'; then
59+
if echo "$CHANGED" | grep -Eq '^(backend/|\.github/workflows/ci\.yml$)'; then
6060
echo "backend=true" >> "$GITHUB_OUTPUT"
6161
fi
6262
- uses: actions/setup-python@v5
@@ -65,12 +65,18 @@ jobs:
6565
python-version: "3.13"
6666
cache: pip
6767
cache-dependency-path: backend/requirements-dev.txt
68+
- name: Install backend dependencies
69+
if: steps.changes.outputs.backend == 'true'
70+
working-directory: backend
71+
run: python -m pip install -r requirements-dev.txt ruff
72+
- name: Run Ruff
73+
if: steps.changes.outputs.backend == 'true'
74+
working-directory: backend
75+
run: python -m ruff check .
6876
- name: Run tests
6977
if: steps.changes.outputs.backend == 'true'
7078
working-directory: backend
71-
run: |
72-
pip install -r requirements-dev.txt
73-
python -m pytest tests/ -v --cov=app --cov-report=term-missing
79+
run: python -m pytest tests/ -v --cov=app --cov-report=term-missing
7480

7581
frontend-lint:
7682
name: Frontend Lint & Typecheck

0 commit comments

Comments
 (0)