Skip to content

Commit

Permalink
Update run_book_tests.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
sameagen-MW authored Jul 27, 2023
1 parent daa6fe2 commit 4613f5f
Showing 1 changed file with 11 additions and 17 deletions.
28 changes: 11 additions & 17 deletions .github/workflows/run_book_tests.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
name: Run all book tests

on:
# Automatically run this action when a new push is made to repo
push:

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
on: [push, workflow_dispatch]

jobs:
my-job:
Expand All @@ -14,30 +9,29 @@ jobs:
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
- run: echo "The ${{ github.repository }} repository has been cloned to the runner."
- name: Set up MATLAB
# This uses the latest release of MATLAB. Can specify "release" if needed.
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: Check swing
uses: matlab-actions/run-command@v1
with:
command: uses('swing')
- name: Run MATLAB Tests

#- 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
#uses: matlab-actions/run-tests@v1
#with:
#select-by-folder: test/book
#code-coverage-cobertura: code-coverage/coverage.xml

0 comments on commit 4613f5f

Please sign in to comment.