Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FIX] fix octave create roi #130

Merged
merged 10 commits into from
Jul 13, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
76 changes: 76 additions & 0 deletions .github/workflows/run_tests_octave.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
---
name: tests and coverage with matlab

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

on:
push:
branches:
- main
pull_request:
branches: ['*']
schedule:
- cron: 0 0 1 * *

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

jobs:
tests_matlab:
runs-on: ubuntu-latest

steps:
- name: Install CPP_ROI
uses: actions/checkout@v4
with:
submodules: true
fetch-depth: 0

- 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: Install octave
run: |
sudo apt-get -y -qq update
sudo apt-get -y install \
octave \
liboctave-dev\
octave-common \
octave-io \
octave-image \
octave-signal \
octave-statistics
make -C MOxUnit install
make -C MOcov install

- name: Compile SPM
run: |
make -C spm12/src PLATFORM=octave distclean
make -C spm12/src PLATFORM=octave
make -C spm12/src PLATFORM=octave install
octave $OCTFLAGS --eval "addpath(fullfile(pwd, 'spm12')); savepath();"

- name: Add bids-matlab
run: make install_dev

- 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;"


- name: Code coverage
uses: codecov/codecov-action@v4
with:
file: coverage.xml
flags: octave
name: codecov-umbrella
fail_ci_if_error: false
Loading