run: ./tools/ci/ci_test.sh
- # }}}
-
- macos-13: # {{{
- runs-on: macos-13
- if: true
-
- strategy:
- fail-fast: false
- matrix:
- include:
- - {impl: python, python: "3.10"}
- - {impl: c, python: "3.10"}
-
- env:
- PSYCOPG_IMPL: ${{ matrix.impl }}
- DEPS: ./psycopg[test] ./psycopg_pool
- PSYCOPG_TEST_DSN: "host=127.0.0.1 user=runner dbname=postgres"
- # MacOS on GitHub Actions seems particularly slow.
- # 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"
-
- steps:
- - uses: actions/checkout@v6
-
- - uses: actions/setup-python@v6
- with:
- python-version: ${{ matrix.python }}
-
- - name: Install PostgreSQL on the runner
- run: brew install gnu-sed postgresql@${PG_VERSION}
-
- - 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
-
- - name: Run tests
- run: ./tools/ci/ci_test.sh
-
-
# }}}
windows: # {{{