fix: run tests without custom containers to access repo files
Run Tests / Backend Tests (push) Failing after 1m42s
Run Tests / Frontend Tests (push) Failing after 11m33s
Run Tests / Test Summary (push) Failing after 48s

This commit is contained in:
Gan, Jimmy
2026-04-04 14:33:22 +08:00
parent 8629f594a3
commit 1c2ac48efd
+10 -11
View File
@@ -10,24 +10,20 @@ jobs:
backend-tests: backend-tests:
name: Backend Tests name: Backend Tests
runs-on: ubuntu-latest runs-on: ubuntu-latest
container:
image: python:3.12-slim
env: env:
SECRET_KEY: test-secret-key-for-ci-environment-32chars-minimum SECRET_KEY: test-secret-key-for-ci-environment-32chars-minimum
steps: steps:
- name: Check workspace - name: Install Python
run: | run: |
pwd apt-get update && apt-get install -y python3 python3-pip python3-venv
ls -la
ls -la dashboard/ || echo "dashboard directory not found"
- name: Install dependencies - name: Install dependencies
run: | run: |
cd dashboard/backend cd dashboard/backend
pip install -r requirements.txt pip3 install -r requirements.txt
pip install -r requirements-dev.txt pip3 install -r requirements-dev.txt
pip install pytest-timeout pip3 install pytest-timeout
- name: Run unit tests - name: Run unit tests
run: | run: |
@@ -44,10 +40,13 @@ jobs:
frontend-tests: frontend-tests:
name: Frontend Tests name: Frontend Tests
runs-on: ubuntu-latest runs-on: ubuntu-latest
container:
image: node:20-slim
steps: steps:
- name: Install Node.js
run: |
curl -fsSL https://deb.nodesource.com/setup_20.x | bash -
apt-get install -y nodejs
- name: Install dependencies - name: Install dependencies
run: | run: |
cd dashboard/frontend cd dashboard/frontend