Skip to content

Commit

Permalink
fix set up
Browse files Browse the repository at this point in the history
  • Loading branch information
Remi-Gau committed Jul 31, 2024
1 parent 3d6544a commit 9933b6c
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 33 deletions.
1 change: 1 addition & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ jobs:
mv moae_fmriprep fmriprep
- name: Get data for testing QA
if: matrix.os == 'ubuntu-latest'
run: |
cd demos/openneuro/
make data_ds000114_mriqc
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/tests_octave.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ jobs:
- name: Install dependencies
run: |
sudo apt-get -y -qq update
sudo apt-get -y install unzip wget
sudo apt-get -y install unzip wget git-annex
- name: Install Node
uses: actions/setup-node@v4
Expand All @@ -79,6 +79,11 @@ jobs:
submodules: recursive
fetch-depth: 0

- name: Install datalad
run: |
python -m pip install --upgrade pip setuptools
pip install datalad
- name: Install validators
run: make install

Expand Down
64 changes: 32 additions & 32 deletions tests/tests_slow/tests_workflows/QA/test_bidsQA.m
Original file line number Diff line number Diff line change
Expand Up @@ -11,50 +11,46 @@

function test_bidsQA_raw()

% markTestAs('slow');
%
% opt = setOptions('vislocalizer');
%
% expectedOutput = fullfile(opt.dir.output, ...
% 'reports', ...
% 'bidspm-raw_split_by-task.png');
%
% if exist(expectedOutput, 'file')
% delete(expectedOutput)
% end
%
% bidsQA(opt)
%
% assertEqual(exist(expectedOutput, 'file'), 2)
markTestAs('slow');

end
opt = setOptions('vislocalizer');

function test_bidsQA_mriqc()
expectedOutput = fullfile(opt.dir.output, ...
'reports', ...
'bidspm-raw_split_by-task.png');

if exist(expectedOutput, 'file')
delete(expectedOutput);
end

% markTestAs('slow');
%
% if ispc()
% moxunit_throw_test_skipped_exception('requires datalad setup');
% end
%
% ds000114mriqc = spm_file(fullfile(getTestDir(), ...
% '..', 'demos', 'openneuro', ...
% 'inputs', 'ds000114-mriqc'), 'cpath');
%
% opt.dir.input = ds000114mriqc;
%
% bidsQA(opt);
bidsQA(opt);

assertEqual(exist(expectedOutput, 'file'), 2);

end

function test_bidsQA_bidspm()
function test_bidsQA_mriqc()

markTestAs('slow');

if ispc()
if ispc() || ismac()
moxunit_throw_test_skipped_exception('requires datalad setup');
end

ds000114mriqc = spm_file(fullfile(getTestDir(), ...
'..', 'demos', 'openneuro', ...
'inputs', 'ds000114-mriqc'), 'cpath');

opt.dir.input = ds000114mriqc;

bidsQA(opt);

end

function test_bidsQA_bidspm()

markTestAs('slow');

opt = setOptions('vislocalizer');

opt.dir.input = opt.dir.preproc;
Expand All @@ -77,6 +73,10 @@ function test_bidsQA_fmriprep()

markTestAs('slow');

if ispc() || ismac()
moxunit_throw_test_skipped_exception('requires datalad setup');
end

ds000114fmriprep = spm_file(fullfile(getTestDir(), ...
'..', 'demos', 'openneuro', ...
'inputs', 'ds000114-fmriprep'), 'cpath');
Expand Down

0 comments on commit 9933b6c

Please sign in to comment.