32 lines
603 B
Bash
Executable File
32 lines
603 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
echo
|
|
echo "Running pycodestyle"
|
|
pycodestyle python/mwmatching.py python/datastruct.py tests
|
|
|
|
echo
|
|
echo "Running mypy"
|
|
mypy --disallow-incomplete-defs python tests
|
|
|
|
echo
|
|
echo "Running pylint"
|
|
pylint --ignore=test_mwmatching.py python tests || [ $(($? & 3)) -eq 0 ]
|
|
|
|
echo
|
|
echo "Running test_mwmatching.py"
|
|
python3 python/test_mwmatching.py
|
|
|
|
echo
|
|
echo "Running test_datastruct.py"
|
|
python3 python/test_datastruct.py
|
|
|
|
echo
|
|
echo "Checking test coverage"
|
|
coverage erase
|
|
coverage run --branch python/test_datastruct.py
|
|
coverage run -a --branch python/test_mwmatching.py
|
|
coverage report -m
|
|
|