Browse Source

Lint first in tests, to error out faster (#948)

pull/949/head
Sebastián Ramírez 5 years ago
committed by GitHub
parent
commit
9573130630
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      scripts/test.sh

5
scripts/test.sh

@ -7,9 +7,8 @@ set -x
if [ -f ./test.db ]; then
rm ./test.db
fi
export PYTHONPATH=./docs/src
pytest --cov=fastapi --cov=tests --cov=docs/src --cov-report=term-missing ${@}
bash ./scripts/lint.sh
# Check README.md is up to date
diff --brief docs/index.md README.md
export PYTHONPATH=./docs/src
pytest --cov=fastapi --cov=tests --cov=docs/src --cov-report=term-missing ${@}

Loading…
Cancel
Save