Skip to content

Commit d9a5a90

Browse files
committed
ENH: Add --output-on-failure to GitHub Actions ctest call
1 parent 81696aa commit d9a5a90

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/build-test-package.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,13 +121,13 @@ jobs:
121121
- name: Build and test
122122
if: matrix.os != 'windows-2019'
123123
run: |
124-
ctest -j 2 -V -S dashboard.cmake
124+
ctest --output-on-failure -j 2 -V -S dashboard.cmake
125125
126126
- name: Build and test
127127
if: matrix.os == 'windows-2019'
128128
run: |
129129
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
130-
ctest -j 2 -V -S dashboard.cmake
130+
ctest --output-on-failure -j 2 -V -S dashboard.cmake
131131
shell: cmd
132132

133133
build-linux-python-packages:

{{cookiecutter.project_name}}/.github/workflows/build-test-package.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,13 +114,13 @@ jobs:
114114
- name: Build and test
115115
if: matrix.os != 'windows-2019'
116116
run: |
117-
ctest -j 2 -V -S dashboard.cmake
117+
ctest --output-on-failure -j 2 -V -S dashboard.cmake
118118
119119
- name: Build and test
120120
if: matrix.os == 'windows-2019'
121121
run: |
122122
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
123-
ctest -j 2 -V -S dashboard.cmake
123+
ctest --output-on-failure -j 2 -V -S dashboard.cmake
124124
shell: cmd
125125

126126
build-linux-python-packages:

0 commit comments

Comments
 (0)