Skip to content

Commit 33ab124

Browse files
committed
Creating setup_matlab.yml
1 parent b014c91 commit 33ab124

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/setup_matlab.yml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Run MATLAB Tests on GitHub-Hosted Runner
2+
on: [push]
3+
jobs:
4+
my-job:
5+
name: Run MATLAB Tests and Generate Artifacts
6+
runs-on: ubuntu-latest
7+
steps:
8+
- name: Check out repository
9+
uses: actions/checkout@v4
10+
- name: Set up MATLAB
11+
uses: matlab-actions/setup-matlab@v2
12+
with:
13+
products: Deep_Learning_Toolbox Reinforcement_Learning_Toolbox Optimization_Toolbox Image_Processing_Toolbox
14+
- name: Run tests and generate artifacts
15+
uses: matlab-actions/run-tests@v2
16+
with:
17+
source-folder: conslearn
18+
test-results-junit: test-results/results.xml
19+
code-coverage-cobertura: code-coverage/coverage.xml
20+
- name: Upload test artifacts
21+
uses: actions/upload-artifact@v4
22+
with:
23+
name: test-artifacts
24+
path: |
25+
test-results/results.xml
26+
code-coverage/coverage.xml

0 commit comments

Comments
 (0)