summary refs log tree commit diff
path: root/.github/workflows
diff options
context:
space:
mode:
authorDavid Robertson <davidr@element.io>2022-08-17 11:17:04 +0100
committerGitHub <noreply@github.com>2022-08-17 11:17:04 +0100
commitba8938b090c7e1908cfa4feac75f08f3bc1183e8 (patch)
tree96f49db7f3c44a6c0fbcc1808b09d18833031d93 /.github/workflows
parentFix a typo in docs and in some warnings (#13538) (diff)
downloadsynapse-ba8938b090c7e1908cfa4feac75f08f3bc1183e8.tar.xz
Reject non-strict types in Pydantic models (#13502)
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/tests.yml14
1 files changed, 13 insertions, 1 deletions
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
index 4bc29c8207..144cb9ffaa 100644
--- a/.github/workflows/tests.yml
+++ b/.github/workflows/tests.yml
@@ -53,10 +53,22 @@ jobs:
         env:
           PULL_REQUEST_NUMBER: ${{ github.event.number }}
 
+  lint-pydantic:
+    runs-on: ubuntu-latest
+    steps:
+      - uses: actions/checkout@v2
+        with:
+          ref: ${{ github.event.pull_request.head.sha }}
+          fetch-depth: 0
+      - uses: matrix-org/setup-python-poetry@v1
+        with:
+          extras: "all"
+      - run: poetry run scripts-dev/check_pydantic_models.py
+
   # Dummy step to gate other tests on without repeating the whole list
   linting-done:
     if: ${{ !cancelled() }} # Run this even if prior jobs were skipped
-    needs: [lint, lint-crlf, lint-newsfile, check-sampleconfig, check-schema-delta]
+    needs: [lint, lint-crlf, lint-newsfile, lint-pydantic, check-sampleconfig, check-schema-delta]
     runs-on: ubuntu-latest
     steps:
       - run: "true"