]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
add pep8 to github workflow
authorFederico Caselli <cfederico87@gmail.com>
Thu, 30 Sep 2021 19:04:22 +0000 (21:04 +0200)
committerFederico Caselli <cfederico87@gmail.com>
Thu, 30 Sep 2021 19:04:22 +0000 (21:04 +0200)
Change-Id: I579e914e7bea38f73304f4d624649f09554ab21c

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

index 5d23818b32259116cb034702a94c95a6dd6acd71..afa2066666612dc9bdabd37be688534e7449128a 100644 (file)
@@ -85,6 +85,38 @@ jobs:
       - name: Run tests
         run: tox -e mypy ${{ matrix.pytest-args }}
 
+  run-pep8:
+    name: pep8-${{ matrix.python-version }}
+    runs-on: ${{ matrix.os }}
+    strategy:
+      # run this job using this matrix, excluding some combinations below.
+      matrix:
+        os:
+          - "ubuntu-latest"
+        python-version:
+          - "3.9"
+
+      fail-fast: false
+
+    # steps to run in each job. Some are github actions, others run shell commands
+    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 tests
+        run: tox -e pep8
 
   # Arm emulation is quite slow (~20min) so for now just run it when merging to master
   # run-test-arm64:
index 0d9a8e9ed5bad3f5193b9b0035318292f36d6963..eae148d5f8fb5d296d913af40812195a75617b5b 100644 (file)
@@ -162,3 +162,36 @@ jobs:
 
       - name: Run tests
         run: tox -e mypy ${{ matrix.pytest-args }}
+
+  run-pep8:
+    name: pep8-${{ matrix.python-version }}
+    runs-on: ${{ matrix.os }}
+    strategy:
+      # run this job using this matrix, excluding some combinations below.
+      matrix:
+        os:
+          - "ubuntu-latest"
+        python-version:
+          - "3.9"
+
+      fail-fast: false
+
+    # steps to run in each job. Some are github actions, others run shell commands
+    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 tests
+        run: tox -e pep8