-
Notifications
You must be signed in to change notification settings - Fork 11
41 lines (34 loc) · 1.18 KB
/
runGitHubTests.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
36
37
38
39
40
41
# See https://github.com/matlab-actions/overview for more information
name: Running runGitHubTests
# Controls when the action will run.
on:
# Triggers the workflow on push or pull request events
push:
branches: [ main, dev ]
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v4
with:
lfs: true
# Python dependencies
- name: Install Python dependencies
run: pip3 install -U referencing jsonschema
# Use the submodules' remote-tracking branches
- name: Update submodules
run: git submodule update --init
# Set up MATLAB on the GitHub Actions runner
- name: Setup MATLAB
uses: matlab-actions/setup-matlab@v2
with:
release: R2023b
# Execute the tests
- name: Running some tests
uses: matlab-actions/run-command@v2
with:
command: run('Tests/runGitHubTests.m')