-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
-------- 2022-06-02: setup github actions v3, python3.10 test matrix
- Loading branch information
Showing
6 changed files
with
87 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
## Project Requirements | ||
click | ||
cli_exit_tools @ git+https://github.com/bitranox/cli_exit_tools.git | ||
lib_list @ git+https://github.com/bitranox/lib_list.git | ||
lib_log_utils @ git+https://github.com/bitranox/lib_log_utils.git | ||
pathlib3x @ git+https://github.com/bitranox/pathlib3x.git | ||
cli_exit_tools | ||
lib_list | ||
lib_log_utils | ||
pathlib3x |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
61 changes: 61 additions & 0 deletions
61
tests/local_testscripts/run_testloop_pytest_and_mypy_only_no_setup.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
#!/bin/bash | ||
own_dir="$( cd "$(dirname "${BASH_SOURCE[0]}")" || exit && pwd -P )" # this gives the full path, even for sourced scripts | ||
|
||
# shellcheck disable=SC2050 | ||
if [[ "True" != "True" ]]; then | ||
echo "exit - ${BASH_SOURCE[0]} is not configured by PizzaCutter" | ||
exit 0 | ||
fi | ||
|
||
# shellcheck disable=SC1090 | ||
source "${own_dir}/lib_bash_functions.sh" | ||
project_root_dir="${project_root_dir}" | ||
DO_FLAKE8_TESTS="True" | ||
DO_MYPY_TESTS="True" | ||
DO_PYTEST="True" | ||
DO_BLACK="True" | ||
# cleanup on cntrl-c | ||
trap cleanup EXIT | ||
|
||
# install dependencies | ||
install_dependencies | ||
|
||
function pytest_loop { | ||
while true; do | ||
banner "Project Root Dir: ${project_root_dir}" | ||
cleanup | ||
|
||
if [ "${DO_BLACK}" == "True" ]; then | ||
if ! run_black; then continue; fi | ||
fi | ||
|
||
# we prefer to run tests on its own, not within pytest, due to shaky and outdated pytest plugins | ||
if [ "${DO_FLAKE8_TESTS}" == "True" ]; then | ||
if ! run_flake8_tests; then continue; fi | ||
fi | ||
|
||
if [ "${DO_PYTEST}" == "True" ]; then | ||
if ! run_pytest --disable-warnings; then continue; fi | ||
fi | ||
|
||
# we prefer to run tests on its own, not within pytest, due to shaky and outdated pytest plugins | ||
if [ "${DO_MYPY_TESTS}" == "True" ]; then | ||
if ! run_mypy_tests; then continue; fi | ||
fi | ||
|
||
# if ! install_pip_requirements_venv; then continue; fi | ||
# if ! setup_test_venv; then continue; fi | ||
# if ! setup_install_venv; then continue; fi | ||
if ! test_commandline_interface_venv; then continue; fi | ||
|
||
banner "ALL TESTS PASSED for ${project_root_dir}" | ||
banner "ALL TESTS PASSED for ${project_root_dir}" | ||
banner "ALL TESTS PASSED for ${project_root_dir}" | ||
sleep 5 | ||
done | ||
|
||
} | ||
|
||
# upgrade_pytest | ||
# upgrade_mypy | ||
pytest_loop |