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 <noreply@anthropic.com>
This commit is contained in:
@@ -89,7 +89,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
cd dashboard/backend
|
cd dashboard/backend
|
||||||
. venv/bin/activate
|
. venv/bin/activate
|
||||||
pytest tests/ -v --timeout=60 \
|
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
|
||||||
|
|||||||
Reference in New Issue
Block a user