ci: Run tests using postgres docker container (#715)

* use postgres docker for tests

* checkout repo

* add checkout

* remove secrets
This commit is contained in:
Sarah Wooders
2023-12-27 13:29:10 +04:00
committed by GitHub
parent 6ab500b3b6
commit ac89413afa
2 changed files with 21 additions and 6 deletions

10
db/run_postgres.sh Normal file
View File

@@ -0,0 +1,10 @@
# build container
docker build -f db/Dockerfile.simple -t pg-test .
# run container
docker run -d --rm \
--name memgpt-db-test \
-p 8888:5432 \
-e POSTGRES_PASSWORD=password \
-v memgpt_db_test:/var/lib/postgresql/data \
pg-test:latest