Skip to content

Commit d2eaeb8

Browse files
authored
Surface failing tests on GHA (#7364)
1 parent 98c5815 commit d2eaeb8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/scripts/unittest.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@ pip install --progress-bar=off pytest pytest-mock pytest-cov
1414
echo '::endgroup::'
1515

1616
echo '::group::Run unittests'
17-
pytest --durations=25
17+
pytest --junit-xml="${RUNNER_TEST_RESULTS_DIR}/test-results.xml" -v --durations=25
1818
echo '::endgroup::'

.github/workflows/test-linux.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ jobs:
6969
echo '::endgroup::'
7070
7171
echo '::group::Run ONNX tests'
72-
pytest --durations=25 -v test/test_onnx.py
72+
pytest --junit-xml="${RUNNER_TEST_RESULTS_DIR}/test-results.xml" -v --durations=25 test/test_onnx.py
7373
echo '::endgroup::'
7474
7575
unittests-extended:
@@ -101,5 +101,5 @@ jobs:
101101
102102
echo '::group::Run extended unittests'
103103
export PYTORCH_TEST_WITH_EXTENDED=1
104-
pytest --durations=25 -v test/test_extended_*.py
104+
pytest --junit-xml="${RUNNER_TEST_RESULTS_DIR}/test-results.xml" -v --durations=25 test/test_extended_*.py
105105
echo '::endgroup::'

0 commit comments

Comments
 (0)