Skip to content

Commit

Permalink
testing.yml : re-run failed tests once in case of random failures.
Browse files Browse the repository at this point in the history
  • Loading branch information
Thurston committed Jul 28, 2024
1 parent fdf356a commit ed6209c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,14 @@ jobs:
with:
command: |
setup cache; addpath build;
res = runProjectTests("verbosity", "Verbose"),
[res, suite, runner] = runProjectTests("verbosity", "Verbose"),
i = find([res.Failed]); res(i).Name,
rep = arrayfun(@(r) r.Details.DiagnosticRecord.Report, res(i), 'UniformOutput', false);
rep{:}
disp("Attempting retry of "+nnz(i)+" failed jobs.");
res(i) = runner.run(suite(i));
rep = arrayfun(@(r) r.Details.DiagnosticRecord.Report, res(i), 'UniformOutput', false);
rep{:}
assertSuccess(res);
- name: Upload MEX files
Expand Down

0 comments on commit ed6209c

Please sign in to comment.