From: Daniele Varrazzo Date: Sun, 12 Oct 2025 02:38:24 +0000 (+0200) Subject: ci: use working test server on macOS X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d17343b5a17ef790915f090e56da345256827103;p=thirdparty%2Fpsycopg.git 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). --- diff --git a/.github/workflows/packages-bin.yml b/.github/workflows/packages-bin.yml index a48320c5e..52dc8de2f 100644 --- a/.github/workflows/packages-bin.yml +++ b/.github/workflows/packages-bin.yml @@ -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 diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index a146def58..fdd42df20 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -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}