]> git.ipfire.org Git - thirdparty/psycopg.git/commitdiff
ci: use working test server on macOS
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Sun, 12 Oct 2025 02:38:24 +0000 (04:38 +0200)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Mon, 13 Oct 2025 01:25:16 +0000 (03:25 +0200)
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
.github/workflows/tests.yml

index a48320c5e988db4a1df440920129696120d9c69d..52dc8de2fab316da878565c0d84e3d82f5dc1988 100644 (file)
@@ -157,7 +157,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
index a146def58c93c8a7d5ab0e65ba40ecc7c4a2acc3..fdd42df20a36df6feb49613ccfea512b0cc5a45b 100644 (file)
@@ -213,7 +213,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
@@ -224,11 +224,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}
@@ -286,11 +282,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}