Restore venv activation in test step, clear VPS cache

Cached venv has broken internal paths even when using venv/bin/python
directly. Clear caches and use . venv/bin/activate + python -m pytest
which correctly sets VIRTUAL_ENV for module resolution.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Gan, Jimmy
2026-06-04 11:07:23 +08:00
parent 3989e281c0
commit 56fd761618
+2 -1
View File
@@ -88,7 +88,8 @@ jobs:
- name: Run tests with coverage - name: Run tests with coverage
run: | run: |
cd dashboard/backend cd dashboard/backend
venv/bin/python -m pytest tests/ -v --timeout=60 \ . venv/bin/activate
python -m pytest tests/ -v --timeout=60 \
--cov=. --cov-report=xml --cov-report=term \ --cov=. --cov-report=xml --cov-report=term \
--junit-xml=test-results.xml \ --junit-xml=test-results.xml \
--cov-fail-under=49 --cov-fail-under=49