Replace py-pglite with testcontainers for Postgres testing (#449)

Signed-off-by: phernandez <paul@basicmachines.co>
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Paul Hernandez
2025-12-10 22:17:56 -06:00
committed by GitHub
parent 70bb10be1d
commit c462faf046
23 changed files with 493 additions and 726 deletions
+2 -16
View File
@@ -78,21 +78,7 @@ jobs:
python-version: [ "3.12", "3.13" ]
runs-on: ubuntu-latest
# Postgres service (only available on Linux runners)
services:
postgres:
image: postgres:17
env:
POSTGRES_DB: basic_memory_test
POSTGRES_USER: basic_memory_user
POSTGRES_PASSWORD: dev_password
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5433:5432
# Note: No services section needed - testcontainers handles Postgres in Docker
steps:
- uses: actions/checkout@v4
@@ -121,7 +107,7 @@ jobs:
run: |
uv pip install -e .[dev]
- name: Run tests (Postgres)
- name: Run tests (Postgres via testcontainers)
run: |
uv pip install pytest pytest-cov
just test-postgres