Run Gitea CI in host mode, and add uvicorn to the dev extra
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user