Skip to content

Commit 13fc85e

Browse files
committed
Update structure and testing framework
1 parent 969508e commit 13fc85e

File tree

172 files changed

+98
-1575
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

172 files changed

+98
-1575
lines changed

.github/workflows/ci.yml

Lines changed: 98 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
1+
name: MATLAB Build
2+
3+
# Controls when the action will run.
4+
on:
5+
push:
6+
branches: [ release ]
7+
pull_request:
8+
branches: [ release ]
9+
workflow_dispatch:
10+
11+
jobs:
12+
test:
13+
strategy:
14+
fail-fast: false
15+
matrix:
16+
MATLABVersion: [R2021a,R2021b,R2022a,R2022b,R2023a,R2023b]
17+
runs-on: ubuntu-latest
18+
steps:
19+
# Checks-out your repository
20+
- uses: actions/checkout@v3
21+
22+
# Sets up a display server
23+
- name: Start display server
24+
if: ${{ always() }}
25+
run: |
26+
sudo apt-get install xvfb
27+
Xvfb :99 &
28+
echo "DISPLAY=:99" >> $GITHUB_ENV
29+
30+
# Sets up MATLAB
31+
- name: Setup MATLAB
32+
uses: matlab-actions/setup-matlab@v2
33+
with:
34+
release: ${{ matrix.MATLABVersion }}
35+
products: Symbolic_Math_Toolbox Image_Processing_and_Computer_Vision_Toolbox Statistics_and_Machine_Learning_Toolbox Curve_Fitting_Toolbox Automated_Driving_Toolbox
36+
# List required products above in the format shown (and uncomment them)
37+
# List of product strings:
38+
# Simulink
39+
# Statistics_and_Machine_Learning_Toolbox
40+
# Simulink_Coder
41+
# Econometrics_Toolbox
42+
# Deep_Learning_Toolbox
43+
44+
45+
# Run all the tests
46+
- name: Run SmokeTests
47+
uses: matlab-actions/run-command@v2
48+
with:
49+
command: openProject(pwd); RunAllTests;
50+
51+
# Upload the test results as artifact
52+
- name: Upload TestResults
53+
uses: actions/[email protected]
54+
with:
55+
name: TestResults
56+
path: ./SoftwareTests/TestResults_${{ matrix.MATLABVersion }}.txt
57+
58+
badge:
59+
if: ${{ always() }}
60+
needs: [test]
61+
strategy:
62+
fail-fast: false
63+
runs-on: ubuntu-latest
64+
steps:
65+
66+
# Checks-out your repository
67+
- uses: actions/checkout@v3
68+
69+
# Sets up R2023b
70+
- name: Setup MATLAB
71+
uses: matlab-actions/setup-matlab@v1
72+
with:
73+
release: R2023b
74+
75+
# Download the test results from artifact
76+
- name: Download TestResults
77+
uses: actions/[email protected]
78+
with:
79+
name: TestResults
80+
path: ./SoftwareTests/
81+
82+
# Create the test results badge
83+
- name: Run CreateBadge
84+
uses: matlab-actions/run-command@v1
85+
with:
86+
command: openProject(pwd); CreateBadge;
87+
88+
# Commit the JSON for the MATLAB releases badge
89+
- name: Commit changed files
90+
continue-on-error: true
91+
run: |
92+
git config user.name "${{ github.workflow }} by ${{ github.actor }}"
93+
git config user.email "<>"
94+
git pull
95+
git add Images/TestedWith.json
96+
git commit Images/TestedWith.json -m "Update CI badges ${{ github.ref_name }}"
97+
git fetch
98+
git push

Data/loadStormData.mlx

-9.22 KB
Binary file not shown.
-17.1 KB
Binary file not shown.

HelperFunctions/Navigation.mlx

-4.27 MB
Binary file not shown.

HelperFunctions/OpenOverview.m

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)