[ENH] Transfer metadata #461
Workflow file for this run
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
--- | |
name: test notebooks | |
on: | |
pull_request: | |
branches: | |
- main | |
paths: | |
- '**.m' | |
- .github/workflows/*system* | |
- lib | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
jobs: | |
system_tests_matlab: | |
# only trigger update on upstream repo | |
if: github.repository_owner == 'cpp-lln-lab' | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Install dependencies | |
run: | | |
sudo apt-get -y -qq update | |
sudo apt-get -y install unzip wget tree | |
- name: Install MATLAB | |
uses: matlab-actions/setup-matlab@v1.2.4 | |
with: | |
# MATLAB release to set up R2020a | |
release: R2020a | |
- name: Clone bidspm | |
uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
fetch-depth: 0 | |
- name: Install SPM | |
run: | | |
git clone https://github.com/spm/spm12.git --depth 1 | |
- name: Copy Macs toolbox to SPM inputs_folder | |
run: cp -rv lib/MACS spm12/toolbox/MACS | |
- name: Test notebooks | |
uses: matlab-actions/run-command@v1.2.1 | |
with: | |
command: | | |
root_dir = getenv('GITHUB_WORKSPACE'); | |
addpath(fullfile(root_dir, 'spm12')); | |
cd(fullfile(root_dir, 'demos')); | |
run test_notebooks; |