diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index c956dc8ed4..867f7eab7a 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -69,12 +69,19 @@ jobs: - name: Run C++ unit tests shell: bash run: | - set -x - pixi run ctest --test-dir build/release --output-on-failure --timeout 120 -V 2>&1 || { - echo "=== Tests failed, showing last test log ===" - cat build/release/Testing/Temporary/LastTest.log 2>/dev/null || true - exit 1 + echo "::group::Running C++ unit tests" + echo "Working directory: $(pwd)" + ls -la build/release/tests/ | head -20 + cd build/release + ctest --output-on-failure --timeout 120 --verbose 2>&1 | tee ctest_output.log || { + EXITCODE=$? + echo "::endgroup::" + echo "::error::ctest failed with exit code $EXITCODE" + echo "=== LastTest.log ===" + cat Testing/Temporary/LastTest.log 2>/dev/null || echo "No LastTest.log" + exit $EXITCODE } + echo "::endgroup::" - name: Install run: pixi run install-release