-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
21 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -62,16 +62,15 @@ jobs: | |
git clone https://github.com/MOxUnit/MOxUnit.git --depth 1 | ||
git clone https://github.com/MOcov/MOcov.git --depth 1 | ||
- name: set environment variable unix | ||
if: matrix.test == 'slow' && matrix.os == 'ubuntu-latest' | ||
run: export SLOW=true | ||
|
||
- name: set environment variable windows | ||
if: matrix.test == 'slow' && matrix.os == 'windows-latest' | ||
run: | | ||
setx SLOW "true" | ||
- name: Run slow tests | ||
if: matrix.test == 'slow' | ||
uses: matlab-actions/[email protected] | ||
with: | ||
command: run MOxUnit/MOxUnit/moxunit_set_path(); addpath(fullfile(pwd, 'MOcov', 'MOcov')); global SLOW; SLOW=true; addpath(getenv('GITHUB_WORKSPACE')); | ||
success = run_tests(); assert(success); | ||
|
||
- name: Run commands | ||
- name: Run fast commands | ||
if: matrix.test == 'fast' | ||
uses: matlab-actions/[email protected] | ||
with: | ||
command: run MOxUnit/MOxUnit/moxunit_set_path(); addpath(fullfile(pwd, 'MOcov', 'MOcov')); addpath(getenv('GITHUB_WORKSPACE')); success = run_tests(); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
function value = run_slow_test_only() | ||
% (C) Copyright 2023 BIDS-MATLAB developers | ||
SLOW = getenv('SLOW'); | ||
global SLOW | ||
ENV_SLOW = getenv('SLOW'); | ||
value = false; | ||
if ~isempty(SLOW) | ||
if ~isempty(ENV_SLOW) || SLOW | ||
value = true; | ||
end | ||
end |