Commit graph velofy/.forgejo/workflows/ci.yaml
Author SHA1 Message Date
ed739ed756
Drop support for Python 3.13
Python 3.14 evaluates annotations lazily (PEP 649),
so forward references need no quotes.

We make the tool targets, the lock files,
and the CI matrix follow the new minimum.

In order to use the new features,
we must drop support for Python 3.13
2026-12-03 13:03:11 +01:00
8b5e66d70b
Install only nox and pre-commit in CI
All checks were successful
CI / Tests (test-types) (push) Successful in 2m3s
CI / Tests (test) (push) Successful in 2m6s
CI / Tests (test-with-3.15) (push) Successful in 2m10s
CI / Lint (push) Successful in 2m20s
CI / Tests (test-with-3.13) (push) Successful in 2m21s
The `nox` sessions install `velofy` and its dependencies themselves;
so, a full `uv sync` only duplicated that work.
2026-12-03 01:12:31 +01:00
53746966ac
Cache uv between CI runs
All jobs restore built wheels (e.g., `rpy2`) and the Python versions
instead of building or fetching them again.

Only the "lint" job saves the cache, pruned to what is expensive to rebuild,
and only when its key changed; so, five jobs do not compress the same archive
in parallel, and unchanged runs skip the 15s of packing.
2026-12-03 01:12:30 +01:00
e1cdac4cfa
Run the CI checks in parallel jobs
The test sessions run as a matrix, each with its own database.

This also adds the "test-with" sessions to CI;
so, the setup installs all `SUPPORTED_PYTHONS` via `uv`,
as `nox` would otherwise pick the system Python 3.13,
which lacks the headers to build `rpy2`.
2026-12-03 01:12:29 +01:00
49276bb9cf
Pull the CI setup into a composite action
The upcoming parallel jobs share it.
2026-12-03 01:12:28 +01:00
cc45b78e5d
Rename the CI job and add a timeout
The version in the name broke the required status check
when 3.14 became the `MAIN_PYTHON`.

The timeout ensures the CI server stays ready
even when something goes badly wrong.
2026-12-03 01:12:28 +01:00
2a64958a93
Make Python 3.14 the MAIN_VERSION
All checks were successful
CI / Checks (Python 3.14) (push) Successful in 2m46s
`requires-python` stays at ">=3.13"; so, `uv.lock` is unchanged
and 3.13 is tested with the "test-with" session.
2026-12-02 21:54:16 +01:00
cfd8d33049
Rename the "doctest" session into "test-docstrings"
All checks were successful
CI / Checks (Python 3.13) (push) Successful in 2m46s
2026-12-01 17:14:48 +01:00
f47c87f51f
Add the "test-types" session as a pre-commit hook 2026-12-01 17:14:47 +01:00
5f7d3108de
Check the type annotations at runtime with typeguard 2026-12-01 17:07:00 +01:00
30aac8e3c7
Use FORGEJO_... names in CI
All checks were successful
CI / Checks (Python 3.13) (push) Successful in 1m40s
2026-11-28 01:26:18 +01:00
d158577984
Reject merge commits in feature branches 2026-11-28 01:24:44 +01:00
4fb96ee485
Run CI only on pushes
All checks were successful
CI / Checks (Python 3.13) (push) Successful in 1m40s
2026-11-28 01:05:28 +01:00
2f0748e059
Rename ci.yml to ci.yaml
All checks were successful
CI / Checks (Python 3.13) (push) Successful in 1m41s
2026-11-27 16:11:46 +01:00
Renamed from .forgejo/workflows/ci.yml (Previous history)