summary refs log tree commit diff
path: root/.ci
diff options
context:
space:
mode:
authorPatrick Cloke <patrickc@matrix.org>2023-11-09 15:13:09 -0500
committerPatrick Cloke <patrickc@matrix.org>2023-11-15 14:29:22 -0500
commit958580cd11bd485f583218342a119898519e091f (patch)
tree853760374db44e9eeaa30c8f9d8940b43c224f4e /.ci
parentSeparate PostgresEngine into Psycopg2Engine and PsycopgEngine. (diff)
downloadsynapse-958580cd11bd485f583218342a119898519e091f.tar.xz
Run tests in CI against psycopg.
Diffstat (limited to '')
-rwxr-xr-x.ci/scripts/calculate_jobs.py31
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 = [