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 60d449c commit 078c4cb
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/backend-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ jobs:
- name: Install dependencies
run: |
python -m venv venv
source venv/bin/activate
pip install -r backend/requirements.txt # Ensure all dependencies are installed, including requests
source venv/bin/activate # Ensure the virtual environment is activated
pip install -r backend/requirements.txt # Install all dependencies, including requests
- name: Cache Python dependencies
uses: actions/cache@v3
Expand All @@ -40,9 +40,9 @@ jobs:
- name: Run pylint (backend only on changed files)
run: |
source venv/bin/activate
source venv/bin/activate # Activate the virtual environment before running pylint
changed_files=$(git diff --name-only origin/main...HEAD | grep '^backend/' || true)
if [ -n "$changed_files" ]; then
pylint backend --exit-zero | tee pylint.log
SCORE=$(tail -n 2 pylint.log | grep -oP '[0-9]+\.[0-9]+(?=/10)')
Expand Down Expand Up @@ -71,8 +71,8 @@ jobs:
- name: Install dependencies
run: |
python -m venv venv
source venv/bin/activate # Activate the virtual environment
pip install -r backend/requirements.txt # Ensure all dependencies are installed, including requests
source venv/bin/activate # Ensure the virtual environment is activated
pip install -r backend/requirements.txt # Install dependencies, including requests
pip install pytest-html
- name: Cache Python dependencies
Expand Down

0 comments on commit 078c4cb

Please sign in to comment.