Skip to content

Commit 4e21866

Browse files
committed
CI: junit
1 parent 1dcb95d commit 4e21866

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.github/workflows/test.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,3 +175,9 @@ jobs:
175175
with:
176176
file: for_testing/coverage.xml
177177
if: ${{ always() }}
178+
- name: Upload pytest test results
179+
uses: actions/upload-artifact@v2
180+
with:
181+
name: pytest-results-${{ matrix.os }}-${{ matrix.python-version }}
182+
path: for_testing/test-results.xml
183+
if: ${{ always() && matrix.check == 'test' }}

tools/ci/check.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ elif [ "${CHECK_TYPE}" == "test" ]; then
2525
cd for_testing
2626
cp ../.coveragerc .
2727
pytest --doctest-modules --doctest-plus --cov nibabel --cov-report xml \
28-
-v --pyargs nibabel
28+
--junitxml=test-results.xml -v --pyargs nibabel
2929
else
3030
false
3131
fi

0 commit comments

Comments
 (0)