macOS 12 runners are now deprecated.
# }}}
- macos-12: # {{{
- runs-on: macos-12
+ macos-13: # {{{
+ runs-on: macos-13
if: true
strategy:
CIBW_TEST_COMMAND: >-
pytest {project}/tests -m 'not slow and not flakey' --color yes
CIBW_ENVIRONMENT: >-
- MACOSX_DEPLOYMENT_TARGET=12.0
+ MACOSX_DEPLOYMENT_TARGET=13.0
PSYCOPG_IMPL=binary
PSYCOPG_TEST_DSN='dbname=postgres'
PATH="/usr/local/opt/postgresql@${PG_VERSION}/bin:$PATH"
- uses: actions/upload-artifact@v4
with:
- name: macos-12-${{matrix.pyver}}-macosx_${{matrix.arch}}
+ name: macos-13-${{matrix.pyver}}-macosx_${{matrix.arch}}
path: ./wheelhouse/*.whl
needs:
- linux
- macos-14
- - macos-12
+ - macos-13
- windows
steps:
- name: Merge Artifacts
# }}}
- macos-12: # {{{
- runs-on: macos-12
+ macos-13: # {{{
+ runs-on: macos-13
if: true
strategy:
- name: Start PostgreSQL service
run: brew services start postgresql@${PG_VERSION}
+ - name: Find the libpq
+ if: ${{ matrix.impl == 'python' }}
+ run: |
+ echo "DYLD_LIBRARY_PATH=/usr/local/opt/postgresql@${PG_VERSION}/lib/postgresql:$DYLD_LIBRARY_PATH" \
+ >> $GITHUB_ENV
+
- name: Include psycopg-c to the packages to install
if: ${{ matrix.impl == 'c' }}
run: |
echo "DEPS=$DEPS ./psycopg_c" >> $GITHUB_ENV
+ echo "PATH=/usr/local/opt/postgresql@${PG_VERSION}/bin:$PATH" >> $GITHUB_ENV
- name: Install Python packages
run: pip install $DEPS