1
0
Fork 0

Add script to run tests

This commit is contained in:
Joris van Rantwijk 2023-04-14 15:45:26 +02:00
parent 6ad3638142
commit e16f502bcf
1 changed files with 22 additions and 0 deletions

22
run_checks.sh Executable file
View File

@ -0,0 +1,22 @@
#!/bin/sh
set -e
echo
echo "Running mypy"
mypy --disallow-incomplete-defs python tests
echo
echo "Running pylint"
pylint --ignore=test_mwmatching.py python tests
echo
echo "Running test_mwmatching.py"
python3 python/test_mwmatching.py
echo
echo "Checking test coverage"
coverage erase
coverage run --branch python/test_mwmatching.py
coverage report -m