]> git.ipfire.org Git - thirdparty/psycopg.git/commitdiff
ci: check for inconsistencies between sync and async code
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Tue, 15 Aug 2023 22:12:25 +0000 (23:12 +0100)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Wed, 11 Oct 2023 21:45:38 +0000 (23:45 +0200)
.github/workflows/lint.yml

index 216032636f97c924b5254006793c3d91a87c6969..c8990a34f2e080958fc94ec65f0d2f4c028a9b78 100644 (file)
@@ -25,7 +25,7 @@ jobs:
           python-version: "3.10"
 
       - name: install packages to tests
-        run: pip install ./psycopg[dev,test] codespell
+        run: pip install ./psycopg[dev,test] codespell ast-comments
 
       - name: Run black
         run: black --check --diff .
@@ -36,6 +36,9 @@ jobs:
       - name: Run mypy
         run: mypy
 
+      - name: Check for sync/async inconsistencies
+        run: ./tools/convert_async_to_sync.sh --check
+
       - name: Check spelling
         run: codespell