From ca1956454b4ab0da79d9248158345988716f9998 Mon Sep 17 00:00:00 2001 From: deadc0de6 Date: Fri, 13 Nov 2020 16:08:35 +0100 Subject: [PATCH] speed up tests on ci/cd --- tests.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests.sh b/tests.sh index 1a18386..a6c56e2 100755 --- a/tests.sh +++ b/tests.sh @@ -33,7 +33,12 @@ cur=`dirname $(readlink -f "${0}")` export COVERAGE_FILE="${cur}/.coverage" # execute tests with coverage -PYTHONPATH="dotdrop" ${nosebin} -s --with-coverage --cover-package=dotdrop +if [ -z ${GITHUB_WORKFLOW} ]; then + #PYTHONPATH="dotdrop" ${nosebin} --processes=0 --with-coverage --cover-package=dotdrop + PYTHONPATH="dotdrop" ${nosebin} -s --processes=-1 --with-coverage --cover-package=dotdrop +else + PYTHONPATH="dotdrop" ${nosebin} --processes=-1 --with-coverage --cover-package=dotdrop +fi #PYTHONPATH="dotdrop" python3 -m pytest tests # enable debug logs