CI on Gitea Actions: pytest and ruff on every PR #11

Closed
opened 2026-11-02 22:55:41 +01:00 by Duckboot · 0 comments
Owner

Why

So far the test suite (272 tests), ruff check and ruff format --check have only been run by hand before each merge. CI makes that automatic and protects every later change.

Proposal

Add a workflow .gitea/workflows/ci.yml that, on push and PR:

  • installs uv and runs uv sync
  • runs uv run pytest -q
  • runs uvx ruff check src tests and uvx ruff format --check src tests

Tests mock cv4pve-cli, so CI needs neither the binary nor cluster access.

Done when

  • The workflow runs green on a PR.
  • A deliberate lint error makes it fail.
  • Optional: a status badge in the README.

Notes

  • Check which runner and labels the Gitea instance offers.
  • The repo's ruff config should be explicit in pyproject.toml. Locally a strict global ruff config is used, so CI could otherwise lint differently.

Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com

## Why So far the test suite (272 tests), `ruff check` and `ruff format --check` have only been run by hand before each merge. CI makes that automatic and protects every later change. ## Proposal Add a workflow `.gitea/workflows/ci.yml` that, on push and PR: - installs uv and runs `uv sync` - runs `uv run pytest -q` - runs `uvx ruff check src tests` and `uvx ruff format --check src tests` Tests mock `cv4pve-cli`, so CI needs neither the binary nor cluster access. ## Done when - The workflow runs green on a PR. - A deliberate lint error makes it fail. - Optional: a status badge in the README. ## Notes - Check which runner and labels the Gitea instance offers. - The repo's ruff config should be explicit in `pyproject.toml`. Locally a strict global ruff config is used, so CI could otherwise lint differently. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Duckboot added the
priority
2-medium
label 2026-11-02 22:55:41 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Duckboot/cv4pve-cli-tui#11