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 26, 2025
1 parent 0a1f1f1 commit 376b322
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/backend-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ jobs:
- name: Run pylint (backend only on changed files)
run: |
source venv/bin/activate
changed_files=$(git diff --name-only HEAD^..HEAD | grep '\.py$' || true)
# Compare against the remote main branch to handle the first commit
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
else
Expand Down

0 comments on commit 376b322

Please sign in to comment.