From: Sebastián Ramírez Date: Wed, 6 Oct 2021 15:08:57 +0000 (+0200) Subject: 🔧 Lint only in Python 3.7 and above (#4006) X-Git-Tag: 0.69.0~48 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=eb1d68c789d320dc3edcb2d8d1e462e9244df874;p=thirdparty%2Ffastapi%2Ffastapi.git 🔧 Lint only in Python 3.7 and above (#4006) --- diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 02507a9d01..7ab0f12307 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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 diff --git a/scripts/test.sh b/scripts/test.sh index 74ed7a1f19..d445ca1742 100755 --- a/scripts/test.sh +++ b/scripts/test.sh @@ -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