2026-02-14 19:33:35 +01:00
|
|
|
# orignally a github action, so who know if this'll work
|
|
|
|
|
|
|
|
|
|
name: Prek checks
|
|
|
|
|
on: [push, pull_request]
|
|
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
|
prek:
|
2026-02-14 19:35:32 +01:00
|
|
|
runs-on: docker
|
2026-02-14 19:33:35 +01:00
|
|
|
steps:
|
2026-02-14 19:40:03 +01:00
|
|
|
- uses: https://code.forgejo.org/actions/checkout@v6
|
2026-02-14 22:02:47 +01:00
|
|
|
- uses: https://code.forgejo.org/actions/setup-python@v6
|
2026-02-14 19:50:23 +01:00
|
|
|
with:
|
2026-02-14 22:02:47 +01:00
|
|
|
python-version: "3.14"
|
|
|
|
|
cache: "pip"
|
|
|
|
|
cache-dependency-path: |
|
|
|
|
|
pyproject.toml
|
|
|
|
|
requirements*.txt
|
2026-02-14 19:50:23 +01:00
|
|
|
- run: |
|
2026-02-14 22:02:47 +01:00
|
|
|
python -m venv venv
|
|
|
|
|
. venv/bin/activate
|
|
|
|
|
pip install --disable-pip-version-check --require-virtualenv --quiet uv
|
|
|
|
|
uv run --active pytest tests.py
|