Skip to content

Commit

Permalink
tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
Remi-Gau committed Jul 13, 2024
1 parent 61aa65f commit df85576
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/run_tests_octave.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ jobs:
- name: Run tests
run: |
octave $OCTFLAGS --eval "addpath(fullfile(pwd, 'tests', 'utils')); savepath();"
octave $OCTFLAGS --eval "cd(fullfile(getenv('GITHUB_WORKSPACE'), '.github', 'workflows')); run tests_matlab;"
octave $OCTFLAGS --eval "cd(fullfile(getenv('GITHUB_WORKSPACE'), '.github', 'workflows')); run tests_octave;"
- name: Code coverage
uses: codecov/codecov-action@v4
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/tests_matlab.m
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
addpath(fullfile(root_dir, 'MOcov', 'MOcov'));

cd(fullfile(root_dir, 'MOxUnit', 'MOxUnit'));
pwd;
run moxunit_set_path();

cd(fullfile(root_dir));
Expand Down
22 changes: 22 additions & 0 deletions .github/workflows/tests_octave.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
function tests_octave()

%
% (C) Copyright 2024 CPP ROI developers

root_dir = getenv('GITHUB_WORKSPACE');

addpath(fullfile(root_dir, 'spm12'));
addpath(fullfile(root_dir, 'lib', 'bids-matlab'));
addpath(fullfile(root_dir, 'MOcov', 'MOcov'));

cd(fullfile(root_dir, 'MOxUnit', 'MOxUnit'));

moxunit_set_path();

cd(fullfile(root_dir));

initCppRoi();

run_tests();

end

0 comments on commit df85576

Please sign in to comment.