Skip to content

Commit 585583f

Browse files
authored
Run book tests every 6 months when new prerelease is out. Try to parallelize testing.
1 parent 65a9d6e commit 585583f

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.github/workflows/run_book_tests.yml

+9-2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ name: Run all book tests
33
on:
44
# Automatically run this action when a new push is made to repo
55
push:
6+
7+
# Run tests every 6 months after prerelease comes out to check for regressions.
8+
# Prerelease for "a" release is out by Jan 1. for "b" release by Jul 1
9+
schedule:
10+
- cron: "0 0 1 1,7 *"
611

712
# Allows you to run this workflow manually from the Actions tab
813
workflow_dispatch:
@@ -37,7 +42,7 @@ jobs:
3742
# Use v2 for Java Swing access
3843
uses: matlab-actions/setup-matlab@v2
3944
with:
40-
products: MATLAB Simulink Robotics_System_Toolbox Navigation_Toolbox UAV_Toolbox Automated_Driving_Toolbox Computer_Vision_Toolbox Image_Processing_Toolbox Deep_Learning_Toolbox Model_Predictive_Control_Toolbox Optimization_Toolbox ROS_Toolbox Signal_Processing_Toolbox Statistics_and_Machine_Learning_Toolbox Symbolic_Math_Toolbox Control_System_Toolbox
45+
products: MATLAB Simulink Robotics_System_Toolbox Navigation_Toolbox UAV_Toolbox Automated_Driving_Toolbox Computer_Vision_Toolbox Image_Processing_Toolbox Deep_Learning_Toolbox Model_Predictive_Control_Toolbox Optimization_Toolbox ROS_Toolbox Signal_Processing_Toolbox Statistics_and_Machine_Learning_Toolbox Symbolic_Math_Toolbox Control_System_Toolbox Parallel_Computing_Toolbox
4146
# Run tests with prerelease as soon as available; switch to GR once it's live
4247
release: latest-including-prerelease
4348

@@ -48,8 +53,10 @@ jobs:
4853

4954
- name: Run MATLAB Tests
5055
# Only run tests in folder test/book
51-
uses: matlab-actions/run-tests@v1
56+
uses: matlab-actions/run-tests@v2
5257
with:
5358
select-by-folder: test/book
5459
startup-options: -webfigures
5560
code-coverage-cobertura: code-coverage/coverage.xml
61+
# Run tests in parallel. Requires Parallel_Computing_Toolbox in "products" list above
62+
use-parallel: true

0 commit comments

Comments
 (0)