Skip to content

Commit 9e109e8

Browse files
committed
Update testing
1 parent fe5b51b commit 9e109e8

File tree

77 files changed

+704
-305
lines changed

Some content is hidden

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

77 files changed

+704
-305
lines changed

.gitattributes

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
*.slmx binary merge=mlAutoMerge
1717
*.sltx binary
1818
*.slxc binary
19-
*.slx binary merge=mlAutoMerge
19+
*.slx binary merge=mlAutoMerge linguist-language=Simulink
2020
*.slxp binary
2121

2222
## Other common binary file types

.github/workflows/ci.yml

Lines changed: 54 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -8,41 +8,60 @@ on:
88
branches: [ release ]
99
workflow_dispatch:
1010

11+
# Add permission to write GitHub pages
12+
permissions:
13+
contents: write
14+
pages: write
15+
id-token: write
16+
1117
jobs:
1218
test:
1319
strategy:
1420
fail-fast: false
1521
matrix:
16-
MATLABVersion: [R2021a,R2021b,R2022a,R2022b,R2023a,R2023b]
22+
MATLABVersion: [R2024a,R2024b]
1723
runs-on: ubuntu-latest
1824
steps:
1925
# Checks-out your repository
20-
- uses: actions/checkout@v3
26+
- uses: actions/checkout@v4
27+
28+
# Sets up a display server
29+
- name: Start display server
30+
if: ${{ always() }}
31+
run: |
32+
sudo apt-get install xvfb
33+
Xvfb :99 &
34+
echo "DISPLAY=:99" >> $GITHUB_ENV
2135
2236
# Sets up MATLAB
2337
- name: Setup MATLAB
24-
uses: matlab-actions/setup-matlab@v1
38+
uses: matlab-actions/setup-matlab@v2
2539
with:
2640
release: ${{ matrix.MATLABVersion }}
41+
products: MATLAB Statistics_and_Machine_Learning_Toolbox Econometrics_Toolbox Deep_Learning_Toolbox Parallel_Computing_Toolbox Curve_Fitting_Toolbox
42+
# List required products above in the format shown (and uncomment them)
43+
# List of product strings:
44+
# Simulink
45+
# Statistics_and_Machine_Learning_Toolbox
46+
# Simulink_Coder
47+
# Econometrics_Toolbox
48+
# Deep_Learning_Toolbox
2749

28-
# Check instal
29-
- name: Check ver
30-
uses: matlab-actions/run-command@v1
31-
with:
32-
command: ver
3350

3451
# Run all the tests
3552
- name: Run SmokeTests
36-
uses: matlab-actions/run-command@v1
53+
uses: matlab-actions/run-command@v2
3754
with:
3855
command: openProject(pwd); RunAllTests;
3956

4057
# Upload the test results as artifact
4158
- name: Upload TestResults
42-
uses: actions/[email protected]
59+
if: ${{ always() }}
60+
uses: actions/upload-artifact@v4
4361
with:
44-
name: TestResults
45-
path: ./SoftwareTests/TestResults_${{ matrix.MATLABVersion }}.txt
62+
name: TestResults_${{ matrix.MATLABVersion }}
63+
path: ./public/*
64+
overwrite: true
4665

4766
badge:
4867
if: ${{ always() }}
@@ -53,26 +72,38 @@ jobs:
5372
steps:
5473

5574
# Checks-out your repository
56-
- uses: actions/checkout@v3
75+
- uses: actions/checkout@v4
5776

5877
# Sets up R2023b
5978
- name: Setup MATLAB
60-
uses: matlab-actions/setup-matlab@v1
79+
uses: matlab-actions/setup-matlab@v2
6180
with:
62-
release: R2023b
81+
release: R2024b
6382

6483
# Download the test results from artifact
65-
- name: Download TestResults
66-
uses: actions/download-artifact@v2.1.1
84+
- name: Download All TestResults
85+
uses: actions/download-artifact@v4
6786
with:
68-
name: TestResults
69-
path: ./SoftwareTests/
70-
87+
path: public
88+
pattern: TestResults_*
89+
merge-multiple: true
90+
7191
# Create the test results badge
72-
- name: Run CreateBadge
73-
uses: matlab-actions/run-command@v1
92+
- name: Run PostSmokeTest
93+
uses: matlab-actions/run-command@v2
94+
with:
95+
command: openProject(pwd); PostSmokeTest;
96+
97+
# Deploy reports to GitHub pages
98+
- name: Setup Pages
99+
uses: actions/configure-pages@v5
100+
- name: Upload pages artifact
101+
uses: actions/upload-pages-artifact@v3
74102
with:
75-
command: openProject(pwd); CreateBadge;
103+
path: public
104+
- name: Deploy to GitHub Pages
105+
id: deployment
106+
uses: actions/deploy-pages@v4
76107

77108
# Commit the JSON for the MATLAB releases badge
78109
- name: Commit changed files

.gitignore

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,5 @@ codegen/
4747
# Project settings
4848
Utilities/ProjectSettings.mat
4949

50-
# Test results
51-
SoftwareTests/TestResults_*
52-
53-
# GitLab page fodler
54-
public/
50+
# GitLab page folder
51+
public/

Data/model.mat

1.61 MB
Binary file not shown.

Images/TestedWith.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"schemaVersion":1,"label":"Test Status","color":"success","message":"R2024a | R2024b"}
9.67 KB
Binary file not shown.
19.9 KB
Binary file not shown.
153 KB
Binary file not shown.
1.7 MB
Binary file not shown.
81.7 KB
Binary file not shown.

0 commit comments

Comments
 (0)