From 00364114d5b3a08819162cc8220ebe6d2937116c Mon Sep 17 00:00:00 2001 From: "Gan, Jimmy" Date: Thu, 4 Jun 2026 10:00:24 +0800 Subject: [PATCH] Use python -m pytest instead of pytest binary in CI Venv symlinks break when cache is used across different environments (VPS host vs NAS Docker). python -m pytest is resilient because it loads pytest as a module, not via a shebang-based script. Co-Authored-By: Claude Opus 4.8 --- .gitea/workflows/deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index ceb2aa1..e22121e 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -89,7 +89,7 @@ jobs: run: | cd dashboard/backend . venv/bin/activate - pytest tests/ -v --timeout=60 \ + python -m pytest tests/ -v --timeout=60 \ --cov=. --cov-report=xml --cov-report=term \ --junit-xml=test-results.xml \ --cov-fail-under=49