-
Notifications
You must be signed in to change notification settings - Fork 3
31 lines (31 loc) · 1.05 KB
/
setup_matlab.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: Run MATLAB Tests on GitHub-Hosted Runner
on: [push]
jobs:
my-job:
name: Run MATLAB Tests and Generate Artifacts
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Set up MATLAB
uses: matlab-actions/setup-matlab@v2
with:
products: Deep_Learning_Toolbox Reinforcement_Learning_Toolbox Optimization_Toolbox Image_Processing_Toolbox
release: R2024a
- name: Run tests and generate artifacts
uses: matlab-actions/run-tests@v2
with:
source-folder: conslearn
test-results-junit: test-results/results.xml
code-coverage-cobertura: code-coverage/coverage.xml
- name: Upload test artifacts
uses: actions/upload-artifact@v4
with:
name: test-artifacts
path: |
test-results/results.xml
code-coverage/coverage.xml
- name: Run code coverage tests
uses: codecov/codecov-action@v4
with:
file: code-coverage/coverage.xml