forked from petercorke/RVC3-MATLAB
-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (35 loc) · 1.19 KB
/
Copy pathrun_book_tests.yml
File metadata and controls
43 lines (35 loc) · 1.19 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
name: Run all book tests
on: [push, workflow_dispatch]
env:
MW_CONNECTOR_CONNECTION_PROFILES: loopbackHttps
jobs:
my-job:
name: Run tests
runs-on: ubuntu-latest
steps:
- name: Check out RVC3-MATLAB repository (for unit tests)
uses: actions/checkout@v3
- name: Start display server
run: |
sudo apt-get install xvfb
Xvfb :99 &
echo "DISPLAY=:99" >> $GITHUB_ENV
- name: Set up MATLAB
uses: matlab-actions/setup-matlab@v1
- name: Check hasDisplay
uses: matlab-actions/run-command@v1
with:
command: feature('HasDisplay')
- name: Check isFigureShowEnabled
uses: matlab-actions/run-command@v1
with:
command: feature('NoFigureWindows')
- name: Run tests
run: |
matlab -batch 'x=feature("HasDisplay");y=feature("NoFigureWindows");disp(x + " " + y)'
#- name: Run MATLAB Tests
# Only run tests in folder test/book
#uses: matlab-actions/run-tests@v1
#with:
#select-by-folder: test/book
#code-coverage-cobertura: code-coverage/coverage.xml