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

Merged
Duckboot merged 1 commits from ci/gitea-actions-11 into main 2026-11-03 00:14:31 +01:00
Owner

What

.gitea/workflows/ci.yaml runs on every PR into main and on every push to main. It:

  1. installs uv (0.13.6, the same as local development)
  2. runs uv sync --locked --python 3.12; 3.12 is the lowest version requires-python allows
  3. runs pytest, ruff check and ruff format --check

ruff is pinned in the dev group (0.17.3). The repo has no ruff config, so the rules are ruff's defaults for that version. Pinning it means CI and local runs check the same rules.

The setup copies the workflow that already runs green on this Gitea instance: ubuntu-latest, a pinned actions/checkout SHA, and uv installed with the official script.

The README gets a CI badge and the lint commands.

Verification

  • A clean clone running the CI steps locally passed: 374 tests, lint and format.
  • This PR's own run is the check on the server.
  • A temporary branch with a deliberate lint error shows that CI fails. That branch is deleted afterwards.

This is the first PR in a stack for the medium-priority issues (#11, #12, #10, #13). The stack is merged at the end.

Closes #11

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

## What `.gitea/workflows/ci.yaml` runs on every PR into `main` and on every push to `main`. It: 1. installs uv (0.13.6, the same as local development) 2. runs `uv sync --locked --python 3.12`; 3.12 is the lowest version `requires-python` allows 3. runs `pytest`, `ruff check` and `ruff format --check` ruff is pinned in the dev group (0.17.3). The repo has no ruff config, so the rules are ruff's defaults for that version. Pinning it means CI and local runs check the same rules. The setup copies the workflow that already runs green on this Gitea instance: `ubuntu-latest`, a pinned `actions/checkout` SHA, and uv installed with the official script. The README gets a CI badge and the lint commands. ## Verification - A clean clone running the CI steps locally passed: 374 tests, lint and format. - This PR's own run is the check on the server. - A temporary branch with a deliberate lint error shows that CI fails. That branch is deleted afterwards. This is the first PR in a stack for the medium-priority issues (#11, #12, #10, #13). The stack is merged at the end. Closes #11 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Duckboot added 1 commit 2026-11-02 23:36:34 +01:00
Add CI on Gitea Actions: pytest and ruff on every PR
CI / pytest and ruff (pull_request) Successful in 3m53s
CI / pytest and ruff (push) Has been cancelled
8c2b48a04c
.gitea/workflows/ci.yaml runs on PRs into main and on pushes to main.
It installs uv, runs `uv sync --locked` with Python 3.12 (the lowest
version requires-python allows), then pytest, `ruff check` and
`ruff format --check`.

ruff is pinned in the dev group (0.17.3). The repo has no ruff config,
so the rules are ruff's defaults for that version; pinning makes CI
and local runs check the same rules. The setup follows the workflow
that already runs green on this Gitea instance (ubuntu-latest, pinned
checkout SHA, uv via the official script). The README gets a CI badge
and the lint commands.

Closes #11

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Duckboot merged commit 8c2b48a04c into main 2026-11-03 00:14:31 +01:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Duckboot/cv4pve-cli-tui#22