diff options
author | Patrick Cloke <patrickc@matrix.org> | 2023-11-09 15:13:09 -0500 |
---|---|---|
committer | Patrick Cloke <patrickc@matrix.org> | 2023-11-15 14:29:22 -0500 |
commit | 958580cd11bd485f583218342a119898519e091f (patch) | |
tree | 853760374db44e9eeaa30c8f9d8940b43c224f4e /.ci | |
parent | Separate PostgresEngine into Psycopg2Engine and PsycopgEngine. (diff) | |
download | synapse-958580cd11bd485f583218342a119898519e091f.tar.xz |
Run tests in CI against psycopg.
Diffstat (limited to '')
-rwxr-xr-x | .ci/scripts/calculate_jobs.py | 31 |
1 files changed, 23 insertions, 8 deletions
diff --git a/.ci/scripts/calculate_jobs.py b/.ci/scripts/calculate_jobs.py index ab1d214727..dfa32a5445 100755 --- a/.ci/scripts/calculate_jobs.py +++ b/.ci/scripts/calculate_jobs.py @@ -50,23 +50,38 @@ if not IS_PR: for version in ("3.9", "3.10", "3.11", "3.12") ) +# Run with both psycopg2 and psycopg. trial_postgres_tests = [ { "python-version": "3.8", "database": "postgres", "postgres-version": "11", "extras": "all", - } + }, + { + "python-version": "3.8", + "database": "psycopg", + "postgres-version": "11", + "extras": "all", + }, ] if not IS_PR: - trial_postgres_tests.append( - { - "python-version": "3.12", - "database": "postgres", - "postgres-version": "16", - "extras": "all", - } + trial_postgres_tests.extend( + [ + { + "python-version": "3.12", + "database": "postgres", + "postgres-version": "16", + "extras": "all", + }, + { + "python-version": "3.12", + "database": "psycopg", + "postgres-version": "16", + "extras": "all", + }, + ] ) trial_no_extra_tests = [ |