velofy/.forgejo/actions/setup/action.yaml
Alexander Hess 4fd5478916
All checks were successful
CI / Tests (test-with-3.15) (push) Successful in 2m13s
CI / Tests (test-types) (push) Successful in 2m21s
CI / Tests (test) (push) Successful in 2m24s
CI / Tests (test-with-3.13) (push) Successful in 2m31s
CI / Lint (push) Successful in 2m36s
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 00:02:43 +01:00

31 lines
968 B
YAML

name: Set up `velofy`
description: Install R, `uv`, and `velofy` with its dependencies
runs:
using: composite
steps:
- name: Install R via system packages
shell: bash
run: |
apt-get update
apt-get install --no-install-recommends \
r-base-dev \
r-cran-forecast \
r-cran-zoo \
-y
# All `SUPPORTED_PYTHONS` from the "classifiers" in pyproject.toml
# => `nox` would otherwise pick the system's Python without headers
- name: Install `uv` and all supported Python versions
shell: bash
run: |
curl -LsSf https://astral.sh/uv/0.13.10/install.sh | sh
echo "$HOME/.local/bin" >> "$FORGEJO_PATH"
"$HOME/.local/bin/uv" python install $(grep -oP 'Programming Language :: Python :: \K3\.\d+' pyproject.toml)
- name: Install `velofy` and its dependencies
shell: bash
run: '"$HOME/.local/bin/uv" sync --locked'