From 2c5f9dec4da5b8e517eac6e6544ee635f9a8a207 Mon Sep 17 00:00:00 2001 From: David Gomes Date: Mon, 23 Feb 2026 11:34:44 -0800 Subject: [PATCH 1/4] Add CI workflow for backend, frontend, and Docker builds --- .github/workflows/ci.yml | 61 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..13e017d --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,61 @@ +name: CI + +on: + push: + branches: ["main"] + pull_request: + branches: ["main"] + +jobs: + backend: + runs-on: ubuntu-latest + defaults: + run: + working-directory: ./backend + + steps: + - uses: actions/checkout@v4 + + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: "3.14" + cache: "pip" + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + if [ -f requirements.txt ]; then pip install -r requirements.txt; fi + + - name: Run tests + run: | + python manage.py test + + frontend: + runs-on: ubuntu-latest + defaults: + run: + working-directory: ./frontend + + steps: + - uses: actions/checkout@v4 + + - name: Set up Node.js + uses: actions/setup-node@v4 + with: + node-version: "20" + cache: "npm" + cache-dependency-path: frontend/package-lock.json + + - name: Install dependencies + run: npm install + + - name: Build + run: npm run build + docker-build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Build Docker images + run: docker compose build From 9db59dfd7970f1ea46447d659bfcccdf6da99fb2 Mon Sep 17 00:00:00 2001 From: Davictory2003 <68972845+Davictory2003@users.noreply.github.com> Date: Mon, 23 Feb 2026 11:40:25 -0800 Subject: [PATCH 2/4] update from python 3.14 to 3.14.3 Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 13e017d..4ba1b56 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,7 +19,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v5 with: - python-version: "3.14" + python-version: "3.14.3" cache: "pip" - name: Install dependencies From 7c3081dee0187034bbd1ea04cb8e4cdb441b2f40 Mon Sep 17 00:00:00 2001 From: Davictory2003 <68972845+Davictory2003@users.noreply.github.com> Date: Mon, 23 Feb 2026 11:40:51 -0800 Subject: [PATCH 3/4] Added cache dependecy path Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- .github/workflows/ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4ba1b56..92fec16 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -21,6 +21,7 @@ jobs: with: python-version: "3.14.3" cache: "pip" + cache-dependency-path: backend/requirements.txt - name: Install dependencies run: | From ee676525cec7e5898a80ea216e8ecb0e438c3d10 Mon Sep 17 00:00:00 2001 From: Davictory2003 <68972845+Davictory2003@users.noreply.github.com> Date: Mon, 23 Feb 2026 11:43:40 -0800 Subject: [PATCH 4/4] Made tests optional for now Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- .github/workflows/ci.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 92fec16..7cd87de 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -28,9 +28,13 @@ jobs: python -m pip install --upgrade pip if [ -f requirements.txt ]; then pip install -r requirements.txt; fi - - name: Run tests + - name: Run tests (if present) run: | - python manage.py test + if [ -f api/tests.py ] || [ -d api/tests ]; then + python manage.py test + else + echo "No backend tests found in api/; skipping test step." + fi frontend: runs-on: ubuntu-latest