From: Daniele Varrazzo Date: Sat, 4 Feb 2023 10:05:11 +0000 (+0100) Subject: ci: fix postgres service in 3rd party workflow X-Git-Tag: pool-3.2.0~126^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=da6f91d6904ab0a98e44eb2f3905616264e03cc0;p=thirdparty%2Fpsycopg.git ci: fix postgres service in 3rd party workflow --- 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