Skip to content

Include necessary MATLAB products #147

Include necessary MATLAB products

Include necessary MATLAB products #147

name: Run MATLAB Tests on GitHub-Hosted Runner
on: [push]
jobs:
my-job:
name: Run MATLAB Tests and Generate Artifacts
runs-on: ubuntu-latest
continue-on-error: true
strategy:
matrix:
release: [R2023a, R2023b, R2024a, latest]
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Set up MATLAB
uses: matlab-actions/setup-matlab@v2
with:
products: >
Global_Optimization_Toolbox
Image_Processing_Toolbox
SimBiology
Symbolic_Math_Toolbox
release: ${{ matrix.release }}
- name: Add paths
uses: matlab-actions/run-command@v2
with:
command: addpath(genpath("src"))
- name: Run MATLAB Tests
uses: matlab-actions/run-tests@v2
with:
select-by-folder: tests
test-results-junit: test-results/results.xml
code-coverage-cobertura: code-coverage/coverage.xml
source-folder: src
- name: Verify complete success
if: ${{ failure() }}
run: exit 1