1- name : Python server tests
1+ name : Python backend server tests
22
33on :
44 pull_request :
55 types : [opened, synchronize, reopened, ready_for_review, draft]
66 paths :
7- - ' server /**'
7+ - ' backend /**'
88 - ' .github/workflows/backend-app.yml'
99
1010permissions :
1515 pytest :
1616 runs-on : ubuntu-latest
1717
18- env :
19- UV_CACHE_DIR : ${{ github.workspace }}/backend/.uv_cache
20-
2118 permissions :
2219 contents : read
2320 pull-requests : write
@@ -29,18 +26,15 @@ jobs:
2926 - name : Install uv package manager
3027 uses : astral-sh/setup-uv@v6
3128 with :
32- enable-cache : true
33- cache-dependency-glob : backend/uv.lock
3429 activate-environment : true
3530 working-directory : backend
36- cache-local-path : ${{ github.workspace }}/backend/.uv_cache
3731
3832 - name : Install dependencies using uv
3933 run : |
40- cd server && uv sync
34+ cd backend && uv sync
4135 shell : bash
4236
43- - name : Run Bandit security check on server code
37+ - name : Run Bandit security check on backend code
4438 id : bandit_check
4539 run : |
4640 echo "Running Bandit security check..."
6155 COMMENT_BODY_FILE="bandit-comment-body.md"
6256 echo "COMMENT_BODY_FILE=${COMMENT_BODY_FILE}" >> $GITHUB_ENV
6357
64- echo "### 🛡️ Bandit Security Scan Results" > $COMMENT_BODY_FILE
58+ echo "### 🛡️ Bandit Backend Security Scan Results" > $COMMENT_BODY_FILE
6559 echo "" >> $COMMENT_BODY_FILE
6660 echo "" >> $COMMENT_BODY_FILE
6761 echo "" >> $COMMENT_BODY_FILE
8175 with :
8276 issue-number : ${{ github.event.pull_request.number }}
8377 comment-author : ' github-actions[bot]'
84- body-includes : Bandit Security Scan Results
78+ body-includes : Bandit Backend Security Scan Results
8579
8680 - name : Post Bandit results as PR comment
8781 if : github.event_name == 'pull_request' && always()
@@ -104,11 +98,12 @@ jobs:
10498 if : github.event_name == 'pull_request' && always()
10599 uses : MishaKav/pytest-coverage-comment@main
106100 with :
101+ unique-id-for-comment : backend-coverage-report
107102 pytest-xml-coverage-path : backend/coverage.xml
108103 pytest-coverage-path : backend/pytest-coverage.txt
109104 junitxml-path : backend/junit/test-results.xml
110- title : Pytest Coverage Report
111- junitxml-title : Test Execution Summary
105+ title : Pytest Coverage Report - Backend
106+ junitxml-title : Test Execution Summary - Backend
112107
113108 - name : Minimize uv cache
114109 run : uv cache prune --ci
0 commit comments