-
Notifications
You must be signed in to change notification settings - Fork 24
45 lines (36 loc) · 1.1 KB
/
code_compatibility_report.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: MHKiT-MATLAB Code Compatibility Test
on:
push:
branches: [master, develop]
pull_request:
branches: [master, develop]
jobs:
main:
strategy:
fail-fast: false
matrix:
# os: [macos-13, ubuntu-latest, windows-latest]
os: [ubuntu-latest]
python-version: [3.8, 3.9, "3.10", 3.11]
matlab-version: [R2021b, R2022a, R2022b, R2023a, R2023b]
runs-on: ${{ matrix.os }}
steps:
- name: Check out MHKiT-MATLAB
uses: actions/checkout@v4
- name: Set up MATLAB
uses: matlab-actions/setup-matlab@v2
with:
release: ${{ matrix.matlab-version }}
- name: Build file to run code compatability report
shell: bash
run: echo "version,
addpath(genpath('mhkit')),
results = runCodeCompatibilityReport()" >> run.m
- name: Echo runner for code compatibility report
shell: bash
run: cat run.m
- name: Run code compatibility report
uses: matlab-actions/run-command@v2
with:
command: run
startup-options: -noFigureWindows