-
Notifications
You must be signed in to change notification settings - Fork 14
55 lines (43 loc) · 1.36 KB
/
run_tests_notebooks.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
---
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@v2.2.0
with:
# MATLAB release to set up R2020a
release: R2023a
- name: Clone bidspm
uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0
- name: Install SPM
run: |
git clone https://github.com/spm/spm12.git --depth 1
- name: Test notebooks
uses: matlab-actions/run-command@v2.1.1
with:
command: |
root_dir = getenv('GITHUB_WORKSPACE');
addpath(fullfile(root_dir, 'spm12'));
cd(fullfile(root_dir, 'demos'));
run test_notebooks;