-
Notifications
You must be signed in to change notification settings - Fork 21
36 lines (35 loc) · 1.3 KB
/
testing.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
32
33
34
35
name: Run MATLAB Tests on GitHub-Hosted Runner
on: [pull_request, push]
jobs:
test:
name: Run MATLAB Tests and Generate Artifacts
strategy:
matrix:
platform: [ubuntu-latest] #, windows-latest] #, macos-latest]
release: [latest] # [R2020b,latest]
runs-on: ${{ matrix.platform }}
steps:
- name: Check out repository
uses: actions/checkout@v3
# - name: Set up MATLAB
# uses: matlab-actions/setup-matlab@v2
# with:
# release: ${{matrix.release}}
# products: Signal_Processing_Toolbox Parallel_Computing_Toolbox Image_Processing_Toolbox Statistics_and_Machine_Learning_Toolbox
# - name: Run tests and generate artifacts
# uses: matlab-actions/run-tests@v2
# with:
# select-by-folder: test
# select-by-tag: Github
# code-coverage-cobertura: coverage.xml
# - name: Create orphan branch
# uses: action-badges/[email protected]
# with:
# branch-name: badges
- name: Make Coverage Badge
uses: action-badges/[email protected]
with:
# file-name: coverage.svg
# badge-branch: badges
github-token: '${{ secrets.GITHUB_TOKEN }}'
coverage-file-name: coverage.xml