From 2de29596df9145de0d1f2b67cc662c0f0fb1c6df Mon Sep 17 00:00:00 2001 From: Bradley Dice Date: Sat, 4 Nov 2023 15:36:21 -0500 Subject: [PATCH] Clean up CI output. --- projects/run-tests.sh | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/projects/run-tests.sh b/projects/run-tests.sh index c41941f..023a01c 100755 --- a/projects/run-tests.sh +++ b/projects/run-tests.sh @@ -3,23 +3,19 @@ set -euo pipefail for PROJECT in `ls -d */`; do - if [[ "$CI" ]]; then - echo "::group::Testing ${PROJECT}" - fi - if [ -e "${PROJECT}/.skipci" ]; then - echo "Skipping tests for project ${PROJECT}." - if [[ "$CI" ]]; then - echo "::endgroup::" - fi + echo "Skipping ${PROJECT}" continue fi + if [[ "$CI" ]]; then + echo "::group::Testing ${PROJECT}" + else + echo "Testing ${PROJECT}" + fi REQUIREMENTS_FILE="${PROJECT}/requirements.txt" - echo "Run test for ${PROJECT}." if [ -e ${REQUIREMENTS_FILE} ]; then echo "Installing requirements:" cat ${REQUIREMENTS_FILE} - mamba install --yes --file ${REQUIREMENTS_FILE} --quiet fi python flow-test.py ${PROJECT} -vv --timeout=600 $@