-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #28 from cpp-lln-lab/dev
[REL] 0.2.0
- Loading branch information
Showing
46 changed files
with
670 additions
and
653 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
template: | | ||
## Release Notes | ||
## CHANGES | ||
$CHANGES |
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 |
---|---|---|
@@ -0,0 +1,63 @@ | ||
name: tests and coverage with matlab | ||
|
||
on: | ||
push: | ||
branches: | ||
- dev | ||
- main | ||
- master | ||
pull_request: | ||
branches: ['*'] | ||
schedule: | ||
- cron: "1 1 1 * *" | ||
|
||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-20.04 | ||
|
||
steps: | ||
- name: Install MATLAB | ||
uses: matlab-actions/setup-matlab@v1.0.1 | ||
with: | ||
# MATLAB release to set up R2020a | ||
release: R2020a | ||
|
||
- name: Install CPP_ROI | ||
uses: actions/checkout@v3 | ||
with: | ||
submodules: true | ||
fetch-depth: 1 | ||
|
||
- name: Install SPM | ||
run: | | ||
git clone https://github.com/spm/spm12.git --depth 1 | ||
- name: Install Moxunit and MOcov | ||
run: | | ||
git clone https://github.com/MOxUnit/MOxUnit.git --depth 1 | ||
git clone https://github.com/MOcov/MOcov.git --depth 1 | ||
- name: Add bids-matlab | ||
run: | | ||
git clone https://github.com/bids-standard/bids-matlab.git --depth 1 | ||
- name: Run commands | ||
uses: matlab-actions/run-command@v1.0.1 | ||
with: | ||
command: cd(fullfile(getenv('GITHUB_WORKSPACE'), '.github', 'workflows')); run tests_matlab; | ||
|
||
- name: Run tests | ||
run: | | ||
cat test_report.log | grep 0 | ||
bash <(curl -s https://codecov.io/bash) | ||
- name: Code coverage | ||
uses: codecov/codecov-action@v1 | ||
with: | ||
file: coverage.xml # optional | ||
flags: unittests # optional | ||
name: codecov-umbrella # optional | ||
fail_ci_if_error: true # optional (default = false) |
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
% | ||
% (C) Copyright 2022 CPP ROI developers | ||
|
||
root_dir = getenv('GITHUB_WORKSPACE'); | ||
|
||
addpath(fullfile(root_dir, 'spm12')); | ||
addpath(fullfile(root_dir, 'bids-matlab')); | ||
addpath(fullfile(root_dir, 'MOcov', 'MOcov')); | ||
|
||
cd(fullfile(root_dir, 'MOxUnit', 'MOxUnit')); | ||
run moxunit_set_path(); | ||
|
||
cd(fullfile(root_dir)); | ||
|
||
initCppRoi(); | ||
|
||
run 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 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
Oops, something went wrong.