From 4613f5fcf689b9213456b16bb7c1b855567ea155 Mon Sep 17 00:00:00 2001 From: sameagen-MW <122639681+sameagen-MW@users.noreply.github.com> Date: Thu, 27 Jul 2023 11:00:40 -0400 Subject: [PATCH] Update run_book_tests.yml --- .github/workflows/run_book_tests.yml | 28 +++++++++++----------------- 1 file changed, 11 insertions(+), 17 deletions(-) diff --git a/.github/workflows/run_book_tests.yml b/.github/workflows/run_book_tests.yml index a70e0ef..a104ba6 100644 --- a/.github/workflows/run_book_tests.yml +++ b/.github/workflows/run_book_tests.yml @@ -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: @@ -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