-
Notifications
You must be signed in to change notification settings - Fork 12
35 lines (31 loc) · 1.08 KB
/
matlab_test.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
name: MATLAB Test
on: [push, pull_request]
jobs:
build:
runs-on: ['MATLAB']
strategy:
fail-fast: false
matrix:
testbranches: ['release','master']
steps:
- uses: actions/checkout@v4
- name: Customize git
run: |
git submodule update --init --recursive
git fetch --prune --unshallow
- name: Clone the matlab-tests repository (${{ matrix.testbranches }})
run: |
git clone -b ${{ matrix.testbranches }} https://github.com/dqrobotics/matlab-tests
- name: Clone the matlab-examples repository (${{ matrix.testbranches }})
run: |
git clone -b ${{ matrix.testbranches }} https://github.com/dqrobotics/matlab-examples
- name: Set correct execution path
run: |
printf "folder=fileparts(which('startup.m'))\n
addpath(genpath(folder))" > startup.m
- name: Run matlab-tests
run: |
matlab -nodisplay -nosplash -nodesktop -r "run('run_basic_tests')"
- name: Run matlab-examples
run: |
matlab -nodisplay -nosplash -nodesktop -r "run('run_examples_test')"