diff --git a/ci/code_checks.sh b/ci/code_checks.sh index ceb13c52ded9c..cfe55f1e05f71 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -105,7 +105,12 @@ if [[ -z "$CHECK" || "$CHECK" == "lint" ]]; then # Imports - Check formatting using isort see setup.cfg for settings MSG='Check import format using isort ' ; echo $MSG - isort --recursive --check-only pandas asv_bench + ISORT_CMD="isort --recursive --check-only pandas asv_bench" + if [[ "$GITHUB_ACTIONS" == "true" ]]; then + eval $ISORT_CMD | awk '{print "##[error]" $0}'; RET=$(($RET + ${PIPESTATUS[0]})) + else + eval $ISORT_CMD + fi RET=$(($RET + $?)) ; echo $MSG "DONE" fi