Skip to content

Commit

Permalink
Clean up CI output.
Browse files Browse the repository at this point in the history
  • Loading branch information
bdice authored and b-butler committed Nov 13, 2023
1 parent a5bfb08 commit 2de2959
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions projects/run-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 $@
Expand Down

0 comments on commit 2de2959

Please sign in to comment.