File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed
Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments