infoxtractor/.forgejo/workflows/ci.yml
Dirk Riemann a71f023ed9
Some checks failed
tests / test (pull_request) Failing after 59s
fix(ci): match mammon's Forgejo Actions pattern (no explicit container image)
The previous python:3.12-slim container lacked node, which actions/checkout@v4
requires. The Forgejo runner's default image includes node + apt + curl, so
we can bootstrap python + uv the same way mammon does.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-18 10:37:56 +02:00

38 lines
909 B
YAML

name: tests
on:
push:
branches: [main]
pull_request:
jobs:
test:
runs-on: docker
services:
postgres:
image: postgres:16
env:
POSTGRES_USER: test
POSTGRES_PASSWORD: test
POSTGRES_DB: ix_test
env:
IX_POSTGRES_URL: postgresql+asyncpg://test:test@postgres:5432/ix_test
IX_TEST_MODE: fake
steps:
- uses: actions/checkout@v4
- name: Install system deps for python-magic / PyMuPDF
run: |
apt-get update -qq
apt-get install -y -qq --no-install-recommends libmagic1 libgl1 libglib2.0-0
- name: Install uv
run: curl -LsSf https://astral.sh/uv/install.sh | sh
- name: Lint
run: ~/.local/bin/uv run --extra dev ruff check src tests
- name: Unit + integration tests
run: ~/.local/bin/uv run --extra dev pytest tests/unit tests/integration -v