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 -1
View File
@@ -132,7 +132,7 @@ pytest # run the tests
ruff check . # lint
```
Both checks also run in CI on every push and pull request (`.github/workflows/ci.yml`).
Both checks also run in CI on every push, on Python 3.10, 3.12 and 3.13. Gitea Actions uses `.gitea/workflows/ci.yml`: the runner on stpvm runs it in host mode and does the checks inside `python:<version>-slim` containers, because its docker-mode jobs can't reach Gitea for `actions/checkout`. `.github/workflows/ci.yml` is the same CI for GitHub.
## Files