[STY] apply miss-hit formatting #8
Workflow file for this run
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: regression_test_windows_Matlab | |
on: | |
push: | |
branches: [master] | |
pull_request: | |
branches: ['*'] | |
jobs: | |
matlab_tests: | |
strategy: | |
matrix: | |
matlab_version: [R2023a] | |
os: [windows-latest] | |
fail-fast: false | |
runs-on: ${{ matrix.os }} | |
steps: | |
# use matlab-actions/setup-matlab to setup a specific version of MATLAB | |
# https://github.com/matlab-actions/setup-matlab | |
- name: Install MATLAB | |
uses: matlab-actions/[email protected] | |
with: | |
release: ${{ matrix.matlab_version }} | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Install Moxunit | |
run: | | |
git clone https://github.com/MOxUnit/MOxUnit.git --depth 1 | |
# use matlab-actions/setup-matlab to run a matlab command | |
# https://github.com/matlab-actions/setup-matlab | |
- name: Run tests on dummy source code to test MoCov | |
uses: matlab-actions/[email protected] | |
with: | |
command: cd('./MOxUnit/MOxUnit/'); moxunit_set_path(); cd ../..; addpath(fullfile(pwd, 'MOcov')); moxunit_runtests tests -verbose -recursive | |
-with_coverage -cover tests/regression/src -cover_xml_file coverage.xml; exit(double(~ans)) |