Skip to content

Commit fc32be9

Browse files
committed
Updated simulink models to 2024a. Added badge to repo. Added an additional image for multimeter leads.
1 parent 9389812 commit fc32be9

28 files changed

+172
-99
lines changed

.github/workflows/ci.yml

Lines changed: 28 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,61 @@
1-
name: MATLAB Build
1+
name: Module Test
22

33
# Controls when the action will run.
44
on:
55
push:
66
branches: [ release ]
77
pull_request:
88
branches: [ release ]
9-
workflow_dispatch:
109

1110
jobs:
12-
test:
11+
RunTests:
1312
strategy:
14-
max-parallel: 1
1513
fail-fast: false
1614
matrix:
17-
MATLABVersion: [R2023a,R2023b]
15+
MATLABVersion: [R2024a]
1816
runs-on: ubuntu-latest
1917
steps:
20-
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
18+
# Checks-out your repository
2119
- uses: actions/checkout@v3
2220

23-
# Sets up MATLAB on the GitHub Actions runner
21+
# Sets up MATLAB
2422
- name: Setup MATLAB
2523
uses: matlab-actions/setup-matlab@v1
2624
with:
2725
release: ${{ matrix.MATLABVersion }}
2826

29-
# Run SmokeTests
27+
# Run all the tests
3028
- name: Run SmokeTests
3129
uses: matlab-actions/run-command@v1
3230
with:
33-
command: openProject(pwd); results = runtests(fullfile("SoftwareTests","SmokeTests.m")); assertSuccess(results);
34-
35-
# Run FunctionTests
36-
- name: Run FunctionTests
37-
uses: matlab-actions/run-command@v1
38-
with:
39-
command: openProject(pwd); results = runtests(fullfile("SoftwareTests","FunctionTests.m")); assertSuccess(results);
31+
command: openProject(pwd); RunAllTests;
4032

4133
# Upload the test results as artifact
4234
- name: Upload TestResults
35+
if: always()
4336
uses: actions/upload-artifact@v3.1.3
4437
with:
4538
name: TestResults
4639
path: ./SoftwareTests/TestResults_${{ matrix.MATLABVersion }}.txt
4740

41+
42+
CreateBadge:
43+
if: ${{ always() }}
44+
needs: [RunTests]
45+
strategy:
46+
fail-fast: false
47+
runs-on: ubuntu-latest
48+
steps:
49+
50+
# Checks-out your repository
51+
- uses: actions/checkout@v3
52+
53+
# Sets up R2023b
54+
- name: Setup MATLAB
55+
uses: matlab-actions/setup-matlab@v1
56+
with:
57+
release: R2023b
58+
4859
# Download the test results from artifact
4960
- name: Download TestResults
5061
uses: actions/download-artifact@v2.1.1
@@ -56,7 +67,7 @@ jobs:
5667
- name: Run CreateBadge
5768
uses: matlab-actions/run-command@v1
5869
with:
59-
command: openProject(pwd); results = runtests(fullfile("SoftwareTests","CreateBadge.m"));
70+
command: openProject(pwd); CreateBadge;
6071

6172
# Commit the JSON for the MATLAB releases badge
6273
- name: Commit changed files
@@ -67,4 +78,5 @@ jobs:
6778
git pull
6879
git add Images/TestedWith.json
6980
git commit Images/TestedWith.json -m "Update CI badges ${{ github.ref_name }}"
81+
git fetch
7082
git push

Images/TestedWith.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"schemaVersion":1,"label":"tested with","message":"R2023a","color":"success"}
1+
{"schemaVersion":1,"label":"Tested with","color":"success","message":"R2024a"}

Images/leads.png

6.02 KB
Loading

Models/EquivalentCircuitDemo.slx

23.8 KB
Binary file not shown.

Models/MeshAnalysisCircuit.slx

7.31 KB
Binary file not shown.

Models/MeshAnalysisExample.slx

8.01 KB
Binary file not shown.

Models/NodalAnalysisCircuit.slx

8.52 KB
Binary file not shown.

Models/NodalAnalysisExample.slx

8.25 KB
Binary file not shown.

Models/OpAmpCircuits.slx

1.18 KB
Binary file not shown.

Models/OpAmpFeedback.slx

6.46 KB
Binary file not shown.

0 commit comments

Comments
 (0)