feat(039): Robust Ingestion Pipeline v2 — Parquet storage, batch CLI, ranges #42
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Backend Tests | |
| on: | |
| pull_request: | |
| paths: | |
| - "backend/**" | |
| - ".github/workflows/backend-tests.yml" | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| services: | |
| postgres: | |
| image: pgvector/pgvector:pg16 | |
| env: | |
| POSTGRES_USER: undata | |
| POSTGRES_PASSWORD: undata | |
| POSTGRES_DB: undata_test | |
| ports: | |
| - 5432:5432 | |
| options: >- | |
| --health-cmd "pg_isready -U undata" | |
| --health-interval 5s | |
| --health-timeout 5s | |
| --health-retries 10 | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v8.0.0 | |
| with: | |
| version: "latest" | |
| - name: Install Python | |
| run: uv python install 3.14 | |
| - name: Install dependencies | |
| working-directory: backend | |
| run: uv sync --all-extras | |
| - name: Enable pgvector extension | |
| env: | |
| PGPASSWORD: undata | |
| run: psql -h localhost -U undata -d undata_test -c "CREATE EXTENSION IF NOT EXISTS vector;" | |
| - name: Run tests | |
| working-directory: backend | |
| env: | |
| DATABASE_URL: postgresql+asyncpg://undata:undata@localhost:5432/undata_test | |
| TEST_DATABASE_URL: postgresql+asyncpg://undata:undata@localhost:5432/undata_test | |
| SECRET_KEY: test-secret | |
| run: uv run pytest tests/ -v --tb=short |