libretime/.github/scripts/python-pkg-test.sh
Kyle Robbertze 29086efd9b install nose
2021-05-21 15:42:20 +02:00

27 lines
422 B
Bash
Executable File

#/bin/bash
failed='f'
# Starting at repo root
echo "::group::Airtime Analyzer"
cd python_apps/airtime_analyzer
if ! nosetests . -x; then
failed='t'
fi
echo "::endgroup::"
echo "::group::API Client"
cd ../api_clients
if ! nosetests . -x; then
failed='t'
fi
echo "::endgroup::"
# Reset to repo root
cd ../..
if [[ "$failed" = "t" ]]; then
echo "Python tests failed"
exit 1
fi
echo "Python tests passed!"