From 8008f1d116b9ec1ea24668b9c120e2867ab6ea8d Mon Sep 17 00:00:00 2001 From: Ryan Kegel Date: Thu, 19 Feb 2026 12:34:33 -0500 Subject: [PATCH] feat: add backend and frontend testing steps to build workflow --- .gitea/workflows/build.yaml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 2f2bba2..4673ad3 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -24,6 +24,35 @@ jobs: echo "tag=next-$version-$current_date" >> $GITHUB_OUTPUT fi + - name: Set up Python for backend tests + uses: actions/setup-python@v4 + with: + python-version: "3.11" + + - name: Install backend dependencies + run: | + python -m pip install --upgrade pip + pip install -r backend/requirements.txt + + - name: Run backend unit tests + run: | + cd backend + pytest -q + + - name: Set up Node.js for frontend tests + uses: actions/setup-node@v4 + with: + node-version: "18" + cache: "npm" + + - name: Install frontend dependencies + run: npm ci + working-directory: frontend/vue-app + + - name: Run frontend unit tests + run: npm run test:unit --if-present + working-directory: frontend/vue-app + - name: Build Backend Docker Image run: | docker build -t git.ryankegel.com:3000/ryan/backend:${{ steps.vars.outputs.tag }} ./backend