mirror of
https://github.com/rjNemo/fastapi
synced 2026-06-11 21:16:45 +00:00
✅ Lint first in tests, to error out faster (#948)
This commit is contained in:
parent
2e0a102565
commit
9573130630
1 changed files with 2 additions and 3 deletions
|
|
@ -7,9 +7,8 @@ set -x
|
||||||
if [ -f ./test.db ]; then
|
if [ -f ./test.db ]; then
|
||||||
rm ./test.db
|
rm ./test.db
|
||||||
fi
|
fi
|
||||||
|
|
||||||
export PYTHONPATH=./docs/src
|
|
||||||
pytest --cov=fastapi --cov=tests --cov=docs/src --cov-report=term-missing ${@}
|
|
||||||
bash ./scripts/lint.sh
|
bash ./scripts/lint.sh
|
||||||
# Check README.md is up to date
|
# Check README.md is up to date
|
||||||
diff --brief docs/index.md README.md
|
diff --brief docs/index.md README.md
|
||||||
|
export PYTHONPATH=./docs/src
|
||||||
|
pytest --cov=fastapi --cov=tests --cov=docs/src --cov-report=term-missing ${@}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue