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 25, 2025
1 parent c97ae37 commit 0b93b96
Showing 1 changed file with 9 additions and 20 deletions.
29 changes: 9 additions & 20 deletions .github/workflows/backend-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,14 @@ jobs:
runs-on: self-hosted

steps:
- name: Clean GitHub Actions workspace manually (force clean)
- name: Clean up ghost submodule (prevents checkout failure)
run: |
sudo rm -rf $GITHUB_WORKSPACE/*
echo "Removing submodule remnants if they exist..."
rm -f .gitmodules
rm -rf .git/modules/cse2102-spring25-Team27 || true
git config --global --remove-section submodule.cse2102-spring25-Team27 || true
- name: Checkout repository without submodules
- name: Checkout code
uses: actions/checkout@v2
with:
submodules: false
Expand Down Expand Up @@ -44,17 +47,8 @@ jobs:
needs: lint

steps:
- name: Clean GitHub Actions workspace manually (force clean)
run: |
sudo rm -rf $GITHUB_WORKSPACE/*
- name: Checkout repository without submodules
- name: Checkout code
uses: actions/checkout@v2
with:
submodules: false
clean: true
fetch-depth: 0
persist-credentials: false

- name: Set up Python
uses: actions/setup-python@v2
Expand All @@ -68,7 +62,7 @@ jobs:
pip install -r backend/requirements.txt
pip install pytest-html
- name: Run pylint with score check
- name: Run pylint on Python code
run: |
source venv/bin/activate
pylint backend/main.py backend/db.py backend/init_db.py --exit-zero | tee pylint.log
Expand Down Expand Up @@ -110,13 +104,8 @@ jobs:
needs: lint

steps:
- name: Checkout repository without submodules
- name: Checkout repository
uses: actions/checkout@v2
with:
submodules: false
clean: true
fetch-depth: 0
persist-credentials: false

- name: Set up Node.js
uses: actions/setup-node@v3
Expand Down

0 comments on commit 0b93b96

Please sign in to comment.