Commit graph velofy/.forgejo
Author SHA1 Message Date
d2528103ff
Pull the CI setup into a composite action
All checks were successful
CI / Checks (push) Successful in 2m51s
The upcoming parallel jobs share it.
2026-12-02 22:41:27 +01:00
a1c579654a
Name the CI job and add a timeout
The version in the name broke the required status check
when 3.14 became the `MAIN_VERSION`.

The timeout ensures the CI server stays ready
even when something goes badly wrong.
2026-12-02 22:34:53 +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
253a12821e
Name merge commits after the merged branch
All checks were successful
CI / Checks (Python 3.13) (push) Successful in 1m40s
2026-11-28 01:33:40 +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
792da0507f
Run the pre-commit hooks in CI
All checks were successful
CI / Checks (Python 3.13) (push) Successful in 1m42s
2026-11-27 15:15:11 +01:00
518811e138
Pin uv to the 0.13 series ...
All checks were successful
CI / Checks (Python 3.13) (push) Successful in 1m31s
... to make CI more deterministic
2026-11-27 13:41:59 +01:00
b4e22dd0d4
Upgrade actions/checkout to v6
All checks were successful
CI / Checks (Python 3.13) (push) Successful in 1m31s
2026-11-27 13:32:27 +01:00
6958cc6a58
Run the nox sessions
All checks were successful
CI / Checks (Python 3.13) (push) Successful in 1m31s
2026-11-27 13:29:56 +01:00
045139a933
Rename the setup steps 2026-11-27 13:29:49 +01:00
aaeb9b1e72
Set UV_PYTHON_PREFERENCE for the whole job 2026-11-27 13:29:36 +01:00
a8c0e17bed
Wait for the database 2026-11-27 13:29:32 +01:00
355dfd993f
Switch from poetry to uv
Use the PEP 735 "[dependency-groups]" (here: "dev", "test", "docs")
instead of Poetry's "dev" group, and `uv_build` as the build backend.

Replace poetry.lock with uv.lock.

Also, adapt CI and the README.
2026-11-26 13:41:49 +01:00
03617d5bbb
Move the pytest config 2026-11-25 15:03:34 +01:00
0e2b8f75f8
Upgrade sqlalchemy
`sqlalchemy` v2.1 uses `psycopg` v3 as the default PostgreSQL driver.

So, we replace `psycopg2` with `psycopg`,
using its binary wheel that bundles `libpq`,
so CI no longer needs `libpq-dev` from `apt`.
2026-11-25 13:58:34 +01:00
042256eb99
Switch to Python 3.13
All checks were successful
CI / Tests (Python 3.13) (push) Successful in 1m17s
The dependencies stay in the same series as on Python 3.8
where those support 3.13.

Only the unavoidable upgrades are taken:
 - `matplotlib` to v3.9
 - `numpy` to v2.1
 - `pandas` to v2.2
 - `scipy` (via statsmodels)

Required code changes:
- `numpy` v2.1 prints its scalars as `np.float64(...)`,
  which `psycopg2` then writes into the SQL
  => Adjust `Forecast.from_dataframe()` to convert the
     rounded values into plain `float`s
- Python 3.12 no longer accepts `float`s in `random.randint()`
  => The test factories now pass the seconds as `int`s

CI and `nox` use a `u`v-managed Python, which ships the C headers
needed to build `psycopg2` and `rpy2`.

`flake8` v4 does not run on Python 3.12+
and is upgraded in a future commit.
2026-11-25 11:30:33 +01:00
95c760a0c3
Migrate to Poetry 2 and the standard [project] table
All checks were successful
CI / Tests (Python 3.8) (push) Successful in 1m23s
2026-11-24 11:58:26 +01:00
f253c09f43
Run the test suite on the Forgejo runner
All checks were successful
CI / Tests (Python 3.8) (push) Successful in 1m44s
2026-11-23 16:27:04 +01:00