1
0
Fork 0
maximum-weight-matching/run_checks.sh

27 lines
535 B
Bash
Executable File

#!/bin/bash
set -e
echo
echo "Running pycodestyle"
pycodestyle python/mwmatching python/run_matching.py tests
echo
echo "Running mypy"
mypy --disallow-incomplete-defs python tests
echo
echo "Running pylint"
pylint --ignore=test_algorithm.py python tests/*.py tests/generate/*.py || [ $(($? & 3)) -eq 0 ]
echo
echo "Running unit tests"
python3 -m unittest discover -t python -s python/tests
echo
echo "Checking test coverage"
coverage erase
coverage run --branch -m unittest discover -t python -s python/tests
coverage report -m