From b2c506a32bfb0b66652f1d8c7e2ad75190dacf64 Mon Sep 17 00:00:00 2001 From: Enrico Minack Date: Mon, 20 Nov 2023 19:39:22 +0100 Subject: [PATCH] Fix detection of python test failure (#207) --- .github/actions/test-python/action.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/actions/test-python/action.yml b/.github/actions/test-python/action.yml index 93ff3059..63c53eeb 100644 --- a/.github/actions/test-python/action.yml +++ b/.github/actions/test-python/action.yml @@ -89,13 +89,14 @@ runs: - name: Python Integration Tests run: | - find python/test -name 'test*.py' | while read test + find python/test -name 'test*.py' > tests + while read test do - if ! $SPARK_HOME/bin/spark-submit --packages uk.co.gresearch.spark:spark-extension_${{ inputs.scala-compat-version }}:$SPARK_EXTENSION_VERSION "$test" test-results + if ! $SPARK_HOME/bin/spark-submit --master "local[2]" --packages uk.co.gresearch.spark:spark-extension_${{ inputs.scala-compat-version }}:$SPARK_EXTENSION_VERSION "$test" test-results then state="fail" fi - done + done < tests if [[ "$state" == "fail" ]]; then exit 1; fi shell: bash