Docs / docs (push) Successful in 49s
Playwright Tests / test-playwright (1, 2) (push) Failing after 1m11s
Playwright Tests / test-playwright (2, 2) (push) Failing after 23s
pre-commit / pre-commit (push) Successful in 3m2s
Test Backend / test-backend (push) Successful in 2m22s
Compose Smoke Test / test-compose (push) Failing after 22s
Playwright Tests / merge-reports (push) Canceled after 1s
The gates have never gone green on the new runners. Three separate reasons: - backend/Dockerfile shipped Python 3.10 while the code imports typing.Self and datetime.UTC, so the container exited on import and the suite could not even load its conftest. The image moves to 3.13 and the packages declare >=3.12, which is the floor the tests actually pass on; ruff's target follows and rewrites timezone.utc and asyncio.TimeoutError accordingly. Relocking drops the 3.10 branch, which bumps FastAPI and so regenerates the SDK. - frontend/README.md had no trailing newline and two dashboard widgets used arbitrary text-[…] sizes. Both are em-relative on purpose, so they move to the inline style the neighbouring ramp already uses. - Every commit left its own run queued: without a concurrency group a runner that was offline for a while works through a backlog nobody reads. A stack that fails to come up now prints its logs before the teardown removes it. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
61 lines
2.2 KiB
YAML
61 lines
2.2 KiB
YAML
name: pre-commit
|
|
|
|
# Gitea Actions. `uses:` is resolved against the instance's action mirror, the
|
|
# same convention the sibling N3XD repositories use — plain `owner/action@tag`.
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
types:
|
|
- opened
|
|
- synchronize
|
|
|
|
# A new push supersedes the run still queued for the commit before it. Without
|
|
# this each commit leaves its own run in the queue and a runner that was offline
|
|
# for a while works through a backlog of results nobody will read.
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
pre-commit:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
- uses: oven-sh/setup-bun@v2
|
|
# Matches backend/Dockerfile, so the gate type-checks and formats against
|
|
# the interpreter the image ships.
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v5
|
|
with:
|
|
python-version: "3.13"
|
|
- name: Set up uv
|
|
uses: astral-sh/setup-uv@v7
|
|
with:
|
|
cache-dependency-glob: |
|
|
pyproject.toml
|
|
backend/pyproject.toml
|
|
uv.lock
|
|
- name: Write .env
|
|
# Not committed, and the generate-frontend-sdk hook imports the backend
|
|
# settings, which read ../.env from backend/.
|
|
run: cp .env.example .env
|
|
# The hooks call `uv run ruff` from the repo root, so the workspace .venv
|
|
# (pyproject.toml → [tool.uv.workspace]) is what has to exist.
|
|
- name: Install backend dependencies
|
|
run: uv sync
|
|
- name: Install frontend dependencies
|
|
run: bun install --frozen-lockfile
|
|
# The formatting hooks rewrite files; pre-commit exits non-zero when they
|
|
# do, which fails the run. No auto-commit branch here: that needs a push
|
|
# token, and pre-commit-ci/lite-action talks to a GitHub-only service.
|
|
- name: Run pre-commit
|
|
run: uvx pre-commit run --all-files --show-diff-on-failure
|
|
# The hooks cover ruff and biome but not mypy, which `make lint-backend`
|
|
# runs and which is strict for everything outside the flow prototypes.
|
|
- name: Typecheck backend
|
|
run: uv run mypy fluksio
|
|
working-directory: backend
|