* Dockerfile to 3.9 * Python version * More python updates * 3.9 on GitHub actions and lint updates * Test out 3.9.11 on GitHub actions * install python with an action * formatting: newline * Also has python code * only check first level for changed modules Previous example (source-google-search-console/credentials) * Test failure: there is no logger.trace
68 lines
2.0 KiB
Bash
Executable File
68 lines
2.0 KiB
Bash
Executable File
printf "Docker ";
|
|
if [[ $(which docker) && $(docker --version) ]]; then
|
|
printf "is installed"
|
|
else
|
|
printf "needs to be installed"
|
|
fi;
|
|
printf "\n";
|
|
desired="14"
|
|
printf "Java ";
|
|
if [[ "$(which java)" && "$(java --version)" ]];
|
|
then
|
|
printf "installed"
|
|
str="$(java --version)"
|
|
IFS=' ' read -ra array <<< "${str}"
|
|
version="${array[1]}"
|
|
if [[ "${version}" > "${desired}" || "${version}" == "${desired}" ]];
|
|
then
|
|
printf " and functional"
|
|
else
|
|
printf " but not functional, must have version ${desired} at least"
|
|
fi
|
|
else
|
|
printf "not installed, must have version ${desired} at least"
|
|
fi;
|
|
printf "\n";
|
|
desired="20.1"
|
|
printf "Pip ";
|
|
if [[ "$(which pip)" && "$(pip --version)" ]];
|
|
then
|
|
printf "installed"
|
|
str="$(pip --version)"
|
|
IFS=' ' read -ra array <<< "${str}"
|
|
version="${array[1]}"
|
|
if [[ "${version}" > "${desired}" || "${version}" == "${desired}" ]];
|
|
then
|
|
printf " and functional"
|
|
else
|
|
printf " but not functional, must have version ${desired} at least"
|
|
fi
|
|
else
|
|
printf "not installed, must have version ${desired} at least"
|
|
fi;
|
|
printf "\n";
|
|
desired="3.9.11"
|
|
printf "Python ";
|
|
if [[ "$(which python3)" && "$(python3 --version)" ]];
|
|
then
|
|
printf "installed"
|
|
str="$(python3 --version)"
|
|
IFS=' ' read -ra array <<< "${str}"
|
|
version="${array[1]}"
|
|
if [[ "${version}" > "${desired}" || "${version}" == "${desired}" ]];
|
|
then
|
|
printf " and functional"
|
|
else
|
|
printf " but not functional, must have version ${desired} at least"
|
|
fi
|
|
else
|
|
printf "not installed, must have version ${desired} at least"
|
|
fi;
|
|
printf "\n";
|
|
printf "JQ ";
|
|
if [[ $(which jq) && $(jq --version) ]]; then
|
|
printf "is installed"
|
|
else
|
|
printf "needs to be installed"
|
|
fi;
|
|
printf "\n"; |