Skip to content

Commit 8b40ee2

Browse files
committed
Change test workflow to upload test results also if tests fails
1 parent 80143dd commit 8b40ee2

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

+tests/+unit/nwbExportTest.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ function testExportTimeseriesWithoutStartingTimeRate(testCase)
6969
'description', 'a test series', ...
7070
'data_unit', 'n/a' ...
7171
);
72-
72+
error('') % Temp: provoke error
7373
testCase.NwbObject.acquisition.set('time_series', time_series);
7474
nwbFilePath = fullfile(testCase.OutputFolder, 'test_part1.nwb');
7575
testCase.verifyError(@(f, fn) nwbExport(testCase.NwbObject, nwbFilePath), 'NWB:CustomConstraintUnfulfilled')

.github/workflows/run_tests.yml

+1-2
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ jobs:
3434
with:
3535
release: R2024a # this is necessary to test dynamic filters
3636
- name: run tests
37+
continue-on-error: true
3738
uses: matlab-actions/run-command@v2
3839
with:
3940
command: results = assertSuccess(nwbtest); assert(~isempty(results), 'No tests ran');
@@ -52,7 +53,6 @@ jobs:
5253
name: Publish JUnit Test Results
5354
runs-on: ubuntu-latest
5455
if: ${{ always() }}
55-
needs: [run_tests]
5656
steps:
5757
- name: retrieve result files
5858
uses: actions/download-artifact@v4
@@ -65,7 +65,6 @@ jobs:
6565
publish_coverage:
6666
name: Publish Cobertura Test Coverage
6767
runs-on: ubuntu-latest
68-
needs: [run_tests]
6968
steps:
7069
- name: check out repository
7170
uses: actions/checkout@v4

0 commit comments

Comments
 (0)