ci: add ruff static gate to make check and Gitea workflow
ci / check (push) Failing after 40s
ci / check (pull_request) Failing after 6s

Adds ruff as a dev dependency with an explicit py312 E/F rule set, so the
gate stays stable across ruff releases. make check now runs uv sync --frozen,
ruff, compileall, and pytest; make lint runs ruff alone.

The Gitea job splits the same checks into named steps for readable failures
and has a 10-minute timeout. No secrets, image push, or cluster access.
This commit is contained in:
Noel Sabia committed 2026-11-14 06:04:15 +01:00
1 parent 8656d9bc8a
commit 2b9617fd71
6 files changed
+63 -10

No files matched your search

+14 -4
View File
@@ -13,6 +13,7 @@ permissions:
jobs:
check:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Check out
uses: actions/checkout@v4
@@ -25,7 +26,16 @@ jobs:
- name: Install uv
run: python -m pip install "uv==0.10.4"
# Same gate as local: uv sync --frozen, compileall src, pytest.
# No secrets, no image push, no cluster access.
- name: Check
run: make check
# Same checks as local `make check`, split into steps for readable CI
# failures. No secrets, no image push, no cluster access.
- name: Sync locked environment
run: uv sync --frozen
- name: Static analysis (ruff)
run: uv run ruff check src tests main.py
- name: Byte-compile
run: uv run python -m compileall src
- name: Tests
run: uv run pytest -q