From 713b32d7c5b0aac666bab8176e8db3696b5c9312 Mon Sep 17 00:00:00 2001 From: Prince D Rusweka Rwabongoya Date: Sun, 27 Apr 2025 22:59:58 -0400 Subject: [PATCH] Update backend-ci.yml --- .github/workflows/backend-ci.yml | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/.github/workflows/backend-ci.yml b/.github/workflows/backend-ci.yml index 3a37dfa..372de00 100644 --- a/.github/workflows/backend-ci.yml +++ b/.github/workflows/backend-ci.yml @@ -1,4 +1,4 @@ -name: CI Backend Workflow +name: CI Backend + Frontend Workflow on: push: @@ -45,7 +45,11 @@ jobs: - name: Run pylint on backend run: | - pylint $(git ls-files '*.py') + pylint_score=$(pylint $(git ls-files '*.py') | tee /dev/tty | 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 + fi - name: Start backend server (background) run: | @@ -56,13 +60,6 @@ jobs: run: | pytest tests/ - - name: Upload Test Results (optional) - if: always() - uses: actions/upload-artifact@v4 - with: - name: backend-test-results - path: backend/tests - frontend-build: runs-on: self-hosted defaults: