Skip to content

Commit ad2af7e

Browse files
author
Angel Gonzalez
committed
feat: include model tests in ci.yml and merge all tests into one job
1 parent 196ace2 commit ad2af7e

File tree

1 file changed

+5
-35
lines changed

1 file changed

+5
-35
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ on:
3434
- '**.xml'
3535

3636
jobs:
37-
check-project:
38-
name: Check Project on ${{ matrix.os }} with MATLAB ${{ matrix.matlab_version }}
37+
run-all-tests:
38+
name: Run All Tests on ${{ matrix.os }} with MATLAB ${{ matrix.matlab_version }}
3939
runs-on: ${{ matrix.os }}
4040
strategy:
4141
matrix:
@@ -51,49 +51,19 @@ jobs:
5151
uses: matlab-actions/setup-matlab@v2
5252
with:
5353
release: ${{ matrix.matlab_version }}
54-
products: >
54+
products: |
5555
Simulink
5656
Simscape
5757
Simscape_Electrical
5858
Simscape_Fluids
5959
Control_System_Toolbox
6060
Motor_Control_Blockset
6161
62-
- name: Run Project Tests
62+
- name: Run All Tests (Except Motor-CAD Interface Tests)
6363
uses: matlab-actions/run-command@v2
6464
with:
6565
command: |
6666
openProject(pwd);
6767
ImportMotorCADThermalModel_CheckProject_runtests;
68-
69-
run-libraries-tests:
70-
name: Run Libraries Tests on ${{ matrix.os }} with MATLAB ${{ matrix.matlab_version }}
71-
runs-on: ${{ matrix.os }}
72-
strategy:
73-
matrix:
74-
os: [ubuntu-latest, windows-latest, macos-latest]
75-
matlab_version: [R2021b, R2022b, R2023b, R2024b]
76-
env:
77-
EDITOR: nano # Setting the EDITOR environment variable
78-
steps:
79-
- name: Check out repository
80-
uses: actions/checkout@v4
81-
82-
- name: Setup MATLAB ${{ matrix.matlab_version }}
83-
uses: matlab-actions/setup-matlab@v2
84-
with:
85-
release: ${{ matrix.matlab_version }}
86-
products: >
87-
Simulink
88-
Simscape
89-
Simscape_Electrical
90-
Simscape_Fluids
91-
Control_System_Toolbox
92-
Motor_Control_Blockset
93-
94-
- name: Run Libraries Tests
95-
uses: matlab-actions/run-command@v2
96-
with:
97-
command: |
98-
openProject(pwd);
9968
ImportMotorCADThermalModel_runlibtests;
69+
ImportMotorCADThermalModel_runmodeltests;

0 commit comments

Comments
 (0)