convert to format understood by runtests #7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: MATLAB CI | |
on: | |
push: | |
branches: | |
- add-CI | |
pull_request: | |
branches: | |
- add-CI | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Set up MATLAB | |
uses: matlab-actions/setup-matlab@v1 | |
- name: Compile MEX files | |
run: | | |
matlab -batch "cd utilities/intervalsC+; mex CountInIntervals.c; mex FindInInterval.c; mex MatchUpIndices.c" | |
matlab -batch "cd utilities/mapsC+; mex Contiguous.c; mex FindField.c" | |
- name: Run MATLAB tests | |
run: | | |
matlab -batch "addpath(genpath('.')); results = runtests('test'); assertSuccess(results);" |