Honest CI: fix ruff and harden gates #8

Merged
ilia merged 10 commits from chore/honest-ci-ruff into main 2026-08-05 18:19:04 -05:00
2 changed files with 6 additions and 5 deletions
Showing only changes of commit 4edd2047c0 - Show all commits
+5 -4
View File
@@ -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
View File
@@ -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: