From 56fd761618d47946640d38de0048dfa4a1bba468 Mon Sep 17 00:00:00 2001 From: "Gan, Jimmy" Date: Thu, 4 Jun 2026 11:07:23 +0800 Subject: [PATCH] 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 --- .gitea/workflows/deploy.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 710f5f1..e22121e 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -88,7 +88,8 @@ jobs: - name: Run tests with coverage run: | 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 \ --junit-xml=test-results.xml \ --cov-fail-under=49