mirror of
https://github.com/rjNemo/fastapi
synced 2026-06-11 13:06:43 +00:00
🔧 Lint only in Python 3.7 and above (#4006)
This commit is contained in:
parent
292b8c8ce9
commit
eb1d68c789
2 changed files with 3 additions and 1 deletions
3
.github/workflows/test.yml
vendored
3
.github/workflows/test.yml
vendored
|
|
@ -32,6 +32,9 @@ jobs:
|
||||||
- name: Install Dependencies
|
- name: Install Dependencies
|
||||||
if: steps.cache.outputs.cache-hit != 'true'
|
if: steps.cache.outputs.cache-hit != 'true'
|
||||||
run: flit install --symlink
|
run: flit install --symlink
|
||||||
|
- name: Lint
|
||||||
|
if: ${{ matrix.python-version != '3.6' }}
|
||||||
|
run: bash scripts/lint.sh
|
||||||
- name: Test
|
- name: Test
|
||||||
run: bash scripts/test.sh
|
run: bash scripts/test.sh
|
||||||
- name: Upload coverage
|
- name: Upload coverage
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,6 @@
|
||||||
set -e
|
set -e
|
||||||
set -x
|
set -x
|
||||||
|
|
||||||
bash ./scripts/lint.sh
|
|
||||||
# Check README.md is up to date
|
# Check README.md is up to date
|
||||||
python ./scripts/docs.py verify-readme
|
python ./scripts/docs.py verify-readme
|
||||||
export PYTHONPATH=./docs_src
|
export PYTHONPATH=./docs_src
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue