Add actions
Some checks failed
CI / test (push) Failing after 32s
Lint / test (push) Successful in 24s
Trivy / test (push) Successful in 22s

This commit is contained in:
Miguel Jacq 2025-11-25 15:48:35 +11:00
parent 944f1e8691
commit 2be1e9e895
Signed by: mig5
GPG key ID: 59B3F0C24135C6A9
3 changed files with 84 additions and 0 deletions

32
.forgejo/workflows/ci.yml Normal file
View file

@ -0,0 +1,32 @@
name: CI
on:
push:
jobs:
test:
runs-on: docker
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install system dependencies
run: |
apt-get update
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends python3-venv pipx
- name: Install Poetry
run: |
pipx install poetry==1.8.3
/root/.local/bin/poetry --version
echo "$HOME/.local/bin" >> "$GITHUB_PATH"
- name: Install project deps (including test extras)
run: |
poetry install --with test
- name: Run test script
run: |
./tests.sh