Skip to content

Commit

Permalink
Update backend-ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
pdr21001 authored Apr 28, 2025
1 parent df4e836 commit df1a9f1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/backend-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Set up Python 3.11
uses: actions/setup-python@v5
Expand All @@ -47,6 +49,7 @@ jobs:
- name: Run pylint on backend
run: |
git fetch origin main
changed_files=$(git diff --name-only origin/main...HEAD | grep '\.py$' || true)
if [ -n "$changed_files" ]; then
pylint $changed_files --exit-zero | tee pylint.log
Expand All @@ -60,7 +63,7 @@ jobs:
- name: Start backend server (background)
run: |
uvicorn main:app --host 0.0.0.0 --port 8000 &
uvicorn main:app --host 0.0.0.0 --port 8000 || exit 1 &
sleep 5 # Wait for server to start
- name: Run pytest on backend (HTTP API tests)
Expand Down

0 comments on commit df1a9f1

Please sign in to comment.