diff --git a/run_presubmit.sh b/run_presubmit.sh index 86623e2ec..804bd89cd 100755 --- a/run_presubmit.sh +++ b/run_presubmit.sh @@ -18,7 +18,16 @@ set -euo pipefail # A helper script for ensuring all checks pass before submitting any change. echo ========== Running unit tests. +if [[ -z `which coverage` ]];then + echo "coverage is not installed. Installing ..." + pip install coverage +fi coverage run --source=gcp_variant_transforms setup.py test echo ========== Running pylint. +if [[ -z `which pylint` ]];then + echo "pylint is not installed. Installing ..." + pip install pylint +fi + pylint gcp_variant_transforms