add a workflow to test against postgres

This commit is contained in:
Ashwin Bharambe 2025-11-10 14:21:11 -08:00
parent 8e18584c67
commit 680f44f01c
6 changed files with 334 additions and 2 deletions

View file

@ -67,6 +67,7 @@ jobs:
needs: generate-matrix
runs-on: ubuntu-latest
name: ${{ format('Integration Tests ({0}, {1}, {2}, client={3}, {4})', matrix.client-type, matrix.config.setup, matrix.python-version, matrix.client-version, matrix.config.suite) }}
if: ${{ !matrix.config.client_types || contains(matrix.config.client_types, matrix.client-type) }}
strategy:
fail-fast: false
@ -97,7 +98,11 @@ jobs:
env:
OPENAI_API_KEY: dummy
with:
stack-config: ${{ matrix.client-type == 'library' && 'ci-tests' || matrix.client-type == 'server' && 'server:ci-tests' || 'docker:ci-tests' }}
stack-config: >-
${{ matrix.config.stack_config
|| (matrix.client-type == 'library' && 'ci-tests')
|| (matrix.client-type == 'server' && 'server:ci-tests')
|| 'docker:ci-tests' }}
setup: ${{ matrix.config.setup }}
inference-mode: 'replay'
suite: ${{ matrix.config.suite }}