Skip to content

Commit

Permalink
Fix detection of python test failure (#207)
Browse files Browse the repository at this point in the history
  • Loading branch information
EnricoMi authored Nov 20, 2023
1 parent 8eb8199 commit b2c506a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/actions/test-python/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit b2c506a

Please sign in to comment.