Skip to content

Commit 84b8ebb

Browse files
committed
Added variable to run tests squentially
1 parent fd86c5b commit 84b8ebb

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed
0 Bytes
Binary file not shown.

run_benchmarking.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ function run_benchmarking(RP, Y)
138138

139139
edge_stats_all(:,i_rep) = edge_stats_all_rep;
140140
pvals_all(:,i_rep) = pvals_all_rep;
141-
edge_stats_all_neg(:,i_rep) = edge_stats_all_neg_rep;
141+
edge_stats_all_neg(:,i_rep) = edge_stats_all_neg_rep;
142142
pvals_all_neg(:,i_rep) = pvals_all_neg_rep;
143143

144144
% If it is an edge method, no need for the

utils/setup_parallel_workers.m

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
function setup_parallel_workers(flag, worker_number)
2-
% Setup parallel workers only if specified
2+
% This variable is used to run tests sequentially - github workflows
3+
% cannot run parallel
4+
global testing_yml_workflow;
5+
6+
% If running in GitHub Actions, force serial execution
7+
if exist('testing_yml_workflow', 'var') && testing_yml_workflow
8+
fprintf('Running in GitHub CI/CD: Forcing serial execution.\n');
9+
return; % Skip parallel execution
10+
end
11+
312
if flag
413
% Get the local parallel cluster
514
c = parcluster('local');

0 commit comments

Comments
 (0)