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 713b32d commit 70be04a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/backend-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ jobs:
- name: Run pylint on backend
run: |
pylint_score=$(pylint $(git ls-files '*.py') | tee /dev/tty | tail -1 | grep -oE '[0-9]+\.[0-9]+')
pylint_output=$(pylint $(git ls-files '*.py'))
echo "$pylint_output"
pylint_score=$(echo "$pylint_output" | tail -1 | grep -oE '[0-9]+\.[0-9]+')
echo "Pylint score: $pylint_score"
if (( $(echo "$pylint_score < 8.0" | bc -l) )); then
echo "Pylint score too low ($pylint_score)!" && exit 1
Expand Down

0 comments on commit 70be04a

Please sign in to comment.