mirror of https://github.com/tiangolo/fastapi.git
✅ Error out when tests fail
This commit is contained in:
parent
e206758ff7
commit
ea8b1a50f1
|
|
@ -1,9 +1,11 @@
|
|||
#!/bin/sh -e
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -e
|
||||
set -x
|
||||
|
||||
export VERSION_SCRIPT="import sys; print('%s.%s' % sys.version_info[0:2])"
|
||||
export PYTHON_VERSION=`python -c "$VERSION_SCRIPT"`
|
||||
|
||||
set -x
|
||||
|
||||
PYTHONPATH=. pytest --cov=fastapi --cov=tests --cov-fail-under=100 --cov-report=term-missing ${@} --cov-report=html
|
||||
mypy fastapi --disallow-untyped-defs
|
||||
|
|
|
|||
Loading…
Reference in New Issue