Skip to content

Commit 5ed43b0

Browse files
committed
Add verbose output to CI for debugging test failures
1 parent 0bebc24 commit 5ed43b0

1 file changed

Lines changed: 18 additions & 1 deletion

File tree

.github/workflows/org_babel_tests.yml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,24 @@ jobs:
5656
env:
5757
NO_SANDBOX: "True"
5858
working-directory: tests
59-
run: ./run_expect_tests.sh
59+
run: |
60+
set -x
61+
echo "=== Python version ==="
62+
../../.venv/bin/python3 --version
63+
echo "=== Running tests ==="
64+
./run_expect_tests.sh || {
65+
echo "=== Test failed, showing diffs ==="
66+
for f in golden/*.json; do
67+
name=$(basename "$f" .json)
68+
if [ -f "staging/babel-formatting.org" ]; then
69+
echo "=== $name ==="
70+
cat "$f" | head -20
71+
echo "---"
72+
fi
73+
done
74+
cat test-results.xml
75+
exit 1
76+
}
6077
6178
- name: Publish Test Results
6279
uses: EnricoMi/publish-unit-test-result-action@v2

0 commit comments

Comments
 (0)