summary refs log tree commit diff
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2022-09-02 14:12:47 +0200
committerGitHub <noreply@github.com>2022-09-02 13:12:47 +0100
commit0fdb685c2b95aa4b727f291c02821ceee6d40dad (patch)
tree820409aa53236bb7ff921858f9ae665faf463400
parentFix two typos with colon in headlines (#13665) (diff)
downloadsynapse-0fdb685c2b95aa4b727f291c02821ceee6d40dad.tar.xz
Only run trial CI on all python versions on non-PRs (#13698)
Diffstat (limited to '')
-rw-r--r--.github/workflows/tests.yml10
-rw-r--r--changelog.d/13698.misc1
2 files changed, 11 insertions, 0 deletions
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
index 49a010d9d8..720cb13907 100644
--- a/.github/workflows/tests.yml
+++ b/.github/workflows/tests.yml
@@ -82,6 +82,16 @@ jobs:
         python-version: ["3.7", "3.8", "3.9", "3.10"]
         database: ["sqlite"]
         extras: ["all"]
+        is_pr:
+          - ${{ startsWith(github.ref, 'refs/pull/') }}
+
+        # If we're a PR then we only test min and max python.
+        exclude:
+          - is_pr: true
+            python-version: 3.8
+          - is_pr: true
+            python-version: 3.9
+
         include:
           # Newest Python without optional deps
           - python-version: "3.10"
diff --git a/changelog.d/13698.misc b/changelog.d/13698.misc
new file mode 100644
index 0000000000..20b6b6d084
--- /dev/null
+++ b/changelog.d/13698.misc
@@ -0,0 +1 @@
+Only run trial CI on all python versions on non-PRs.