From 44bc016c68fa106a34522fd5c34735c957d25298 Mon Sep 17 00:00:00 2001 From: Daniele Varrazzo Date: Sun, 12 Oct 2025 04:38:24 +0200 Subject: [PATCH] ci: use working test server on macOS macos-14 can use PostgreSQL 18. I saw a failure trying to use 17; not sure if it's still there but 18 works fine, so bump. macos-13 better says on 17. Trying to "brew update" it will pull a version that will try to compile docbook and takes forever to install. I understand that avoid an upgrade we get a version that has a binary package ("bottled", in this deranged naming convention). --- .github/workflows/packages-bin.yml | 2 +- .github/workflows/tests.yml | 14 +++----------- 2 files changed, 4 insertions(+), 12 deletions(-) diff --git a/.github/workflows/packages-bin.yml b/.github/workflows/packages-bin.yml index ee44f6a22..2291abc00 100644 --- a/.github/workflows/packages-bin.yml +++ b/.github/workflows/packages-bin.yml @@ -156,7 +156,7 @@ jobs: CIBW_TEST_COMMAND: >- pytest {project}/tests -m 'not slow and not flakey' --color yes CIBW_ENVIRONMENT: >- - PG_VERSION=17 + PG_VERSION=18 PSYCOPG_IMPL=binary PSYCOPG_TEST_DSN='dbname=postgres' LIBPQ_BUILD_PREFIX=/tmp/libpq.build diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index c1c8aed7e..19bc22c70 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -176,7 +176,7 @@ jobs: # Don't run timing-based tests as they regularly fail. # pproxy-based tests fail too, with the proxy not coming up in 2s. NOT_MARKERS: "timing proxy mypy" - PG_VERSION: "17" + PG_VERSION: "18" steps: - uses: actions/checkout@v5 @@ -187,11 +187,7 @@ jobs: allow-prereleases: true - name: Install PostgreSQL on the runner - # On 2024-09-28 postgresql@17 installation failed but the package is - # available. So, in a few days, we might be able to drop "brew update". - run: | - brew update - brew install postgresql@${PG_VERSION} + run: brew install postgresql@${PG_VERSION} - name: Start PostgreSQL service run: brew services start postgresql@${PG_VERSION} @@ -251,11 +247,7 @@ jobs: python-version: ${{ matrix.python }} - name: Install PostgreSQL on the runner - # On 2024-09-28 postgresql@17 installation failed but the package is - # available. So, in a few days, we might be able to drop "brew update". - run: | - brew update - brew install gnu-sed postgresql@${PG_VERSION} + run: brew install gnu-sed postgresql@${PG_VERSION} - name: Start PostgreSQL service run: brew services start postgresql@${PG_VERSION} -- 2.47.3