fix(ci): match mammon's Forgejo Actions pattern (no explicit container image)
Some checks failed
tests / test (pull_request) Failing after 59s
Some checks failed
tests / test (pull_request) Failing after 59s
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>
This commit is contained in:
parent
57cdfd73fb
commit
a71f023ed9
1 changed files with 7 additions and 17 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
name: CI
|
name: tests
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
|
|
@ -8,8 +8,6 @@ on:
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
runs-on: docker
|
runs-on: docker
|
||||||
container:
|
|
||||||
image: python:3.12-slim
|
|
||||||
services:
|
services:
|
||||||
postgres:
|
postgres:
|
||||||
image: postgres:16
|
image: postgres:16
|
||||||
|
|
@ -17,11 +15,6 @@ jobs:
|
||||||
POSTGRES_USER: test
|
POSTGRES_USER: test
|
||||||
POSTGRES_PASSWORD: test
|
POSTGRES_PASSWORD: test
|
||||||
POSTGRES_DB: ix_test
|
POSTGRES_DB: ix_test
|
||||||
options: >-
|
|
||||||
--health-cmd="pg_isready -U test"
|
|
||||||
--health-interval=5s
|
|
||||||
--health-timeout=3s
|
|
||||||
--health-retries=10
|
|
||||||
|
|
||||||
env:
|
env:
|
||||||
IX_POSTGRES_URL: postgresql+asyncpg://test:test@postgres:5432/ix_test
|
IX_POSTGRES_URL: postgresql+asyncpg://test:test@postgres:5432/ix_test
|
||||||
|
|
@ -32,17 +25,14 @@ jobs:
|
||||||
|
|
||||||
- name: Install system deps for python-magic / PyMuPDF
|
- name: Install system deps for python-magic / PyMuPDF
|
||||||
run: |
|
run: |
|
||||||
apt-get update && apt-get install -y --no-install-recommends \
|
apt-get update -qq
|
||||||
libmagic1 libgl1 libglib2.0-0
|
apt-get install -y -qq --no-install-recommends libmagic1 libgl1 libglib2.0-0
|
||||||
|
|
||||||
- name: Install uv
|
- name: Install uv
|
||||||
run: pip install --no-cache-dir uv
|
run: curl -LsSf https://astral.sh/uv/install.sh | sh
|
||||||
|
|
||||||
- name: Install project
|
|
||||||
run: uv sync --extra dev
|
|
||||||
|
|
||||||
- name: Lint
|
- name: Lint
|
||||||
run: uv run ruff check src tests
|
run: ~/.local/bin/uv run --extra dev ruff check src tests
|
||||||
|
|
||||||
- name: Unit + integration tests (no GPU, no live Ollama)
|
- name: Unit + integration tests
|
||||||
run: uv run pytest tests/unit tests/integration -v
|
run: ~/.local/bin/uv run --extra dev pytest tests/unit tests/integration -v
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue