From 70be04ac047a146bbf6a7ee552500b9fdd181888 Mon Sep 17 00:00:00 2001 From: Prince D Rusweka Rwabongoya Date: Sun, 27 Apr 2025 23:02:24 -0400 Subject: [PATCH] Update backend-ci.yml --- .github/workflows/backend-ci.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/backend-ci.yml b/.github/workflows/backend-ci.yml index 372de00..226fda9 100644 --- a/.github/workflows/backend-ci.yml +++ b/.github/workflows/backend-ci.yml @@ -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