Skip to content

Commit

Permalink
Run tests with python3.8 or better
Browse files Browse the repository at this point in the history
  • Loading branch information
mmore500 committed May 9, 2021
1 parent ead7cf0 commit fc80907
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion dishpylib/test/run_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,13 @@ set -e # exit with error if any of this fails

script_dir="$(dirname "$(readlink -f "$0")")"

nosetests "${script_dir}"/**/test_*.py
which_python="$(\
command -v python3.8 \
|| command -v python3.9 \
|| echo python3 \
)"
echo "which_python ${which_python}"

"${which_python}" -c "import sys; assert sys.version_info >= (3, 8, 0)"

"${which_python}" "$(which nosetests)" "${script_dir}"/**/test_*.py

0 comments on commit fc80907

Please sign in to comment.