From da6f91d6904ab0a98e44eb2f3905616264e03cc0 Mon Sep 17 00:00:00 2001 From: Daniele Varrazzo Date: Sat, 4 Feb 2023 11:05:11 +0100 Subject: [PATCH] ci: fix postgres service in 3rd party workflow --- .github/workflows/3rd-party-tests.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/3rd-party-tests.yml b/.github/workflows/3rd-party-tests.yml index 516ea08d0..40ecf5b3c 100644 --- a/.github/workflows/3rd-party-tests.yml +++ b/.github/workflows/3rd-party-tests.yml @@ -46,13 +46,19 @@ jobs: DEPS: ./psycopg pytest pytest-xdist services: - pg: + postgresql: image: postgres:15 env: POSTGRES_PASSWORD: password POSTGRES_DB: test ports: - 5432:5432 + # Wait until postgres has started + options: >- + --health-cmd pg_isready + --health-interval 10s + --health-timeout 5s + --health-retries 5 steps: - uses: actions/checkout@v3 -- 2.47.2