From 03c584091991730084dd793e57f3cfc71267fd9b Mon Sep 17 00:00:00 2001 From: Elvis Pranskevichus Date: Sat, 13 Jul 2024 12:19:30 +0200 Subject: [PATCH] .github: Explicitly install Postgres in platform tests It appears that Github no longer preinstalls Postgres in their macOS images, so do this explicitly. --- .github/workflows/tests.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index b7229e18..ab64ed8b 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -53,6 +53,12 @@ jobs: version_line_pattern: | __version__\s*=\s*(?:['"])([[:PEP440:]])(?:['"]) + - name: Setup PostgreSQL + uses: tj-actions/install-postgresql@2a80e9368dff47cd05fee5bf3cf7d88f68c2f8e9 # v3.1.1 + if: steps.release.outputs.version == 0 && matrix.os == 'macos-latest' + with: + postgresql-version: 16 + - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v4 if: steps.release.outputs.version == 0