From 31e74e8807939386c6e84a5047c74b7d4265aa47 Mon Sep 17 00:00:00 2001 From: Leclerc Clement Date: Mon, 18 Nov 2024 15:54:03 +0100 Subject: [PATCH] skip test error Signed-off-by: Leclerc Clement --- .github/workflows/snapshot-ci.yml | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/.github/workflows/snapshot-ci.yml b/.github/workflows/snapshot-ci.yml index 69efb97ba..dce053ef3 100644 --- a/.github/workflows/snapshot-ci.yml +++ b/.github/workflows/snapshot-ci.yml @@ -31,6 +31,8 @@ jobs: shell: bash steps: + - name: Initialize test summary + run: touch $TEST_SUMMARY #SETUP PYTHON - name: Set up Python ${{ matrix.python.version }} @@ -98,7 +100,21 @@ jobs: working-directory: ./powsybl-open-loadflow - name: Build LOADFLOW continue-on-error: true - run: mvn -batch-mode --no-transfer-progress clean install -Dmaven.test.failure.ignore=true + run: | + mvn -batch-mode --no-transfer-progress clean install -Dmaven.test.failure.ignore=true + BUILD_EXIT=$? + if [ $BUILD_EXIT -eq 0 ]; then + echo "Module LOADFLOW - Status: Success" >> $TEST_SUMMARY + echo "Build tests passed" >> $TEST_SUMMARY + else + echo "Module LOADFLOW - Status: Failed" >> $TEST_SUMMARY + echo "Failed tests:" >> $TEST_SUMMARY + find . -name "TEST-*.xml" -exec grep -l "> $TEST_SUMMARY + done + fi working-directory: ./powsybl-open-loadflow - name: Get LOADFLOW_VERSION