Run Gitea CI in host mode, and add uvicorn to the dev extra
CI / test (3.10) (push) Successful in 1m50s
CI / test (3.12) (push) Successful in 53s
CI / test (3.13) (push) Successful in 54s

Every Gitea Actions run failed in actions/checkout: the stpvm runner is
registered against http://localhost:3000, which an ubuntu-latest job
container can't reach. Add .gitea/workflows/ci.yml, which Gitea uses in
place of the GitHub workflow, following web_server's pattern: host mode,
a plain git fetch over Gitea's SSH port, and ruff + pytest inside
python:<version>-slim containers.

That surfaced a real failure: test_serve_refuses_without_token imports
uvicorn, which only the web extra installed.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
2026-10-23 22:15:19 +01:00
co-authored by Claude Opus 5.5
parent 597bace442
commit fa99c3076c
3 changed files with 75 additions and 1 deletions
+1
View File
@@ -26,6 +26,7 @@ dev = [
"textual>=1.0",
"rich>=13.0",
"fastapi>=0.110",
"uvicorn>=0.29", # imported by receipt_web.serve(), which the tests call
"python-multipart>=0.0.9",
"httpx>=0.27", # FastAPI's TestClient
]