]> git.ipfire.org Git - thirdparty/sqlalchemy/alembic.git/commitdiff
Add mypy to the github workflow 918/head
authorCaselIT <cfederico87@gmail.com>
Mon, 13 Sep 2021 19:11:22 +0000 (21:11 +0200)
committerCaselIT <cfederico87@gmail.com>
Mon, 13 Sep 2021 19:15:17 +0000 (21:15 +0200)
Fixes: #917
Change-Id: I77d8a3673eb6d990ca947c59f6960925561d122a

.github/workflows/run-on-pr.yaml
.github/workflows/run-test.yaml
tox.ini

index 4943b3ebea3e236d977ad66cc29f57d8de41c2c7..6a90b031c8b318b4a2a08a3612a183e6e3213d23 100644 (file)
@@ -48,3 +48,34 @@ jobs:
 
       - name: Run tests
         run: tox -e py-${{ matrix.sqlalchemy }}
+
+  run-mypy:
+    name: mypy-${{ matrix.python-version }}-${{ matrix.os }}
+    runs-on: ${{ matrix.os }}
+    strategy:
+      matrix:
+        os:
+          - "ubuntu-latest"
+        python-version:
+          - "3.9"
+
+      fail-fast: false
+
+    steps:
+      - name: Checkout repo
+        uses: actions/checkout@v2
+
+      - name: Set up python
+        uses: actions/setup-python@v2
+        with:
+          python-version: ${{ matrix.python-version }}
+          architecture: ${{ matrix.architecture }}
+
+      - name: Install dependencies
+        run: |
+          python -m pip install --upgrade pip
+          pip install --upgrade tox setuptools
+          pip list
+
+      - name: Run mypy
+        run: tox -e mypy
index 467d8100145bbbc70b61e1f757452b05b18ca2eb..7105a8a29a10319f165f35ddf6689e0d177ef182 100644 (file)
@@ -56,3 +56,34 @@ jobs:
 
       - name: Run tests
         run: tox -e py-${{ matrix.sqlalchemy }}
+
+  run-mypy:
+    name: mypy-${{ matrix.python-version }}-${{ matrix.os }}
+    runs-on: ${{ matrix.os }}
+    strategy:
+      matrix:
+        os:
+          - "ubuntu-latest"
+        python-version:
+          - "3.9"
+
+      fail-fast: false
+
+    steps:
+      - name: Checkout repo
+        uses: actions/checkout@v2
+
+      - name: Set up python
+        uses: actions/setup-python@v2
+        with:
+          python-version: ${{ matrix.python-version }}
+          architecture: ${{ matrix.architecture }}
+
+      - name: Install dependencies
+        run: |
+          python -m pip install --upgrade pip
+          pip install --upgrade tox setuptools
+          pip list
+
+      - name: Run mypy
+        run: tox -e mypy
diff --git a/tox.ini b/tox.ini
index 5cdbce53595e881388972a93401f5764ef223075..575644b819f4cfbefe1138c26baa529977c04577 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -66,7 +66,7 @@ deps=
     mako
     types-pkg-resources
     types-python-dateutil
-    # is imported in alembic/testing and mypy complains if it's installed.
+    # is imported in alembic/testing and mypy complains if it's not installed.
     pytest
 commands = mypy ./alembic/ --exclude alembic/templates