fix: use virtual environment for Python dependencies in CI
Run Tests / Frontend Tests (push) Waiting to run
Run Tests / Backend Tests (push) Failing after 14m51s
Run Tests / Test Summary (push) Has been cancelled

This commit is contained in:
Gan, Jimmy
2026-04-04 15:36:09 +08:00
parent e60c5d534e
commit 87af015ef1
+7 -3
View File
@@ -26,19 +26,23 @@ jobs:
- name: Install dependencies
run: |
cd dashboard/backend
pip3 install --break-system-packages -r requirements.txt
pip3 install --break-system-packages -r requirements-dev.txt
pip3 install --break-system-packages pytest-timeout
python3 -m venv venv
. venv/bin/activate
pip install -r requirements.txt
pip install -r requirements-dev.txt
pip install pytest-timeout
- name: Run unit tests
run: |
cd dashboard/backend
. venv/bin/activate
pytest tests/unit/ -v --timeout=30 -x
echo "✅ Unit tests passed"
- name: Run integration tests
run: |
cd dashboard/backend
. venv/bin/activate
pytest tests/integration/ -v --timeout=30 -x
echo "✅ Integration tests passed"