diff options
author | Patrick Cloke <patrickc@matrix.org> | 2023-11-09 14:58:51 -0500 |
---|---|---|
committer | Patrick Cloke <patrickc@matrix.org> | 2023-11-09 14:58:51 -0500 |
commit | 7b82cba4bcd9503d791cbb0fc1af5f2ccdc65847 (patch) | |
tree | e9fd15515a183da300fc222d5519bfba492c2a06 /.github | |
parent | Back out unneeded changes. (diff) | |
download | synapse-7b82cba4bcd9503d791cbb0fc1af5f2ccdc65847.tar.xz |
Support running tests in CI.
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/tests.yml | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index a1f714da23..af32cb604e 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -346,7 +346,9 @@ jobs: run: until pg_isready -h localhost; do sleep 1; done - run: poetry run trial --jobs=6 tests env: - SYNAPSE_POSTGRES: ${{ matrix.job.database == 'postgres' || '' }} + # If matrix.job.database is 'psycopg' set SYNAPSE_POSTGRES to that string; + # otherwise if it is 'postgres' set it to true. Otherwise, empty. + SYNAPSE_POSTGRES: ${{ matrix.job.database == 'psycopg' && 'psycopg' || matrix.job.database == 'postgres' || '' }} SYNAPSE_POSTGRES_HOST: /var/run/postgresql SYNAPSE_POSTGRES_USER: postgres SYNAPSE_POSTGRES_PASSWORD: postgres |