-
Notifications
You must be signed in to change notification settings - Fork 6
69 lines (56 loc) · 1.55 KB
/
run_tests_matlab.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
---
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: 1 1 1 * *
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
tests_matlab:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-13, windows-latest]
version: [R2021a, R2023b]
include:
- os: macos-14
version: R2023b
runs-on: ${{matrix.os}}
steps:
- name: Install MATLAB
uses: matlab-actions/setup-matlab@v2.2.0
with:
release: ${{matrix.version}}
- 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: Add bids-matlab
run: make install_dev
- name: Run tests
uses: matlab-actions/run-command@v2.1.1
with:
command: cd(fullfile(getenv('GITHUB_WORKSPACE'), '.github', 'workflows')); run tests_matlab;
- name: Code coverage
uses: codecov/codecov-action@v4
with:
file: coverage.xml
flags: ${{ matrix.os }}_matlab-${{ matrix.version }}
name: codecov-umbrella
fail_ci_if_error: false