From 7a5b4d6425c40c55bbde0bd9354615c219f8d359 Mon Sep 17 00:00:00 2001 From: Tony Locke Date: Sun, 29 Sep 2024 19:15:35 +0100 Subject: [PATCH] i --- .github/workflows/test.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 07de285..f541b85 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -34,7 +34,17 @@ jobs: - name: Check Podman version run: podman --version - name: Run postgresql - run: test/postgres_server/run_test_server.sh + run: | + podman run \ + --interactive \ + --tty \ + --publish 127.0.0.1:5432:5432 \ + --env POSTGRES_PASSWORD=pw \ + --env OUTSIDE_USER="$USER" \ + --mount type=bind,source="${{ github.workspace }}/test/postgres_server/init_scripts",target=/docker-entrypoint-initdb.d \ + --name pg8000-test-server \ + docker.io/library/postgres:latest + - name: Test with pytest run: | python -m pytest -x -v -W error test --ignore=test/test_readme.py