]> 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 11:26:01 +0000 (13:26 +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 ee44f6a22baa633fda843e0f00621732f90895cb..2291abc00ca0fdc4d1428c7268757818e7bf820e 100644 (file)
@@ -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
index c1c8aed7e255ac50aabd1f021a2fc46ba602d2e9..19bc22c70f1ee29a1e6b529933e6810824082b41 100644 (file)
@@ -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}