]> git.ipfire.org Git - thirdparty/fastapi/fastapi.git/commitdiff
🔧 Lint only in Python 3.7 and above (#4006)
authorSebastián Ramírez <tiangolo@gmail.com>
Wed, 6 Oct 2021 15:08:57 +0000 (17:08 +0200)
committerGitHub <noreply@github.com>
Wed, 6 Oct 2021 15:08:57 +0000 (15:08 +0000)
.github/workflows/test.yml
scripts/test.sh

index 02507a9d0154cdec831ad567dcdb5d114aafe9b6..7ab0f1230775f5c1bed360f6211ad552600315e0 100644 (file)
@@ -32,6 +32,9 @@ jobs:
       - name: Install Dependencies
         if: steps.cache.outputs.cache-hit != 'true'
         run: flit install --symlink
+      - name: Lint
+        if: ${{ matrix.python-version != '3.6' }}
+        run: bash scripts/lint.sh
       - name: Test
         run: bash scripts/test.sh
       - name: Upload coverage
index 74ed7a1f19adc951e797558dbf3f5495d1be550f..d445ca174200bde71e71fc84d7d3173a008e4013 100755 (executable)
@@ -3,7 +3,6 @@
 set -e
 set -x
 
-bash ./scripts/lint.sh
 # Check README.md is up to date
 python ./scripts/docs.py verify-readme
 export PYTHONPATH=./docs_src