ci: longer review-server health wait; env PYTHONPATH for pytest
This commit is contained in:
@@ -49,7 +49,7 @@ jobs:
|
||||
pip install bandit pip-audit ruff --break-system-packages
|
||||
|
||||
- name: Ruff lint
|
||||
run: python3 -m ruff check . --isolated
|
||||
run: python3 -m ruff check .
|
||||
|
||||
- name: Bandit (advisory)
|
||||
run: bandit -r . -q || true
|
||||
@@ -58,11 +58,12 @@ jobs:
|
||||
run: pip-audit -r requirements.txt 2>/dev/null || pip-audit 2>/dev/null || true
|
||||
|
||||
- name: Pytest
|
||||
env:
|
||||
PYTHONPATH: .
|
||||
run: |
|
||||
if [ -d tests ] || ls test_*.py *_test.py 2>/dev/null; then
|
||||
pip install pytest --break-system-packages
|
||||
export PYTHONPATH=.
|
||||
python3 -m pytest -q
|
||||
pip install -r requirements-dev.txt --break-system-packages
|
||||
python3 -m pytest -q --tb=short
|
||||
else
|
||||
echo "No tests found — skip"
|
||||
fi
|
||||
|
||||
+1
-1
@@ -69,7 +69,7 @@ def _free_port() -> int:
|
||||
return s.getsockname()[1]
|
||||
|
||||
|
||||
def _wait_health(url: str, timeout: float = 8.0) -> None:
|
||||
def _wait_health(url: str, timeout: float = 30.0) -> None:
|
||||
deadline = time.time() + timeout
|
||||
while time.time() < deadline:
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user