-
Notifications
You must be signed in to change notification settings - Fork 36
56 lines (43 loc) · 1.42 KB
/
run_examples.yml
File metadata and controls
56 lines (43 loc) · 1.42 KB
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
56
---
name: tests_examples
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
on:
push:
branches:
- main
pull_request:
branches: ['*']
# to run on PR opened by other workflows (to update schema)
pull_request_target:
branches: [main]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
test:
if: |
github.event_name == 'push' ||
github.event_name == 'workflow_dispatch' ||
(github.event_name == 'pull_request' && !contains(fromJSON('["github-actions[bot]","dependabot[bot]","pre-commit-ci[bot]"]'), github.event.pull_request.user.login)) ||
(github.event_name == 'pull_request_target' && contains(fromJSON('["github-actions[bot]","dependabot[bot]","pre-commit-ci[bot]"]'), github.event.pull_request.user.login))
runs-on: ubuntu-latest
steps:
- name: Install MATLAB
uses: matlab-actions/setup-matlab@v2.6.1
with:
release: R2024a
- name: Clone bids-matlab
uses: actions/checkout@v6
with:
ref: ${{ github.event.pull_request.head.sha || github.sha }}
submodules: true
fetch-depth: 1
- name: Install bids example
run: |
cd demos/notebooks
make install
- name: Run commands
uses: matlab-actions/run-command@v2.4.0
with:
command: cd('demos/notebooks'); success = test_notebooks(); assert(success);