Skip to content

Commit

Permalink
Updates for v6.0 Release (WEC-Sim#1143)
Browse files Browse the repository at this point in the history
* update readme for github actions

* updating version to v6.0 and test workflows for supported versions of MATLAB

* change to advanced features series

* resolving workflow bug due to version numbers

* updating docs for release

* updating hyperlink

* update release notes
  • Loading branch information
kmruehl authored Oct 19, 2023
1 parent 75545ba commit d7eeefe
Show file tree
Hide file tree
Showing 7 changed files with 265 additions and 269 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/run-tests-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
strategy:
fail-fast: false
matrix:
release: [R2020b, R2023a]
release: [R2020b, R2021a, R2021b, R2022a, R2022b, R2023a]
name: MATLAB ${{ matrix.release }} on Windows
steps:
- name: Check out repository
Expand Down Expand Up @@ -51,8 +51,8 @@ jobs:
strategy:
fail-fast: false
matrix:
release: [R2020b, latest]
name: MATLAB ${{ matrix.release }} on LINUX
release: [R2020b, R2021a, R2021b, R2022a, R2022b, R2023a, latest]
name: MATLAB ${{ matrix.release }} on Linux
steps:
- name: Check out repository
uses: actions/checkout@v3
Expand Down
57 changes: 49 additions & 8 deletions .github/workflows/run-tests-master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: Run MATLAB tests on master branch
on:
# Trigger the workflow on push or pull request,
# but only for the master branch
workflow_dispatch: {}
push:
branches:
- master
Expand All @@ -12,29 +13,69 @@ concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
run_tests:
run_windows_tests:
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
release: [R2020b, R2021a, R2021b, R2022a, R2022b, R2023a]
name: MATLAB ${{ matrix.release }} on Windows
steps:
- name: Check out repository
uses: actions/checkout@v3
with:
lfs: true
- name: Check out LFS objects
run: git lfs checkout
- name: Install MATLAB
uses: matlab-actions/setup-matlab@v2-beta
with:
release: ${{ matrix.release }}
products: Simulink Simscape Simscape_Multibody
- name: Install WEC-Sim
uses: matlab-actions/run-command@v1
with:
command: |
addpath(genpath('source')),
savepath pathdef.m;
- name: Run tests and generate artifacts
uses: matlab-actions/run-command@v1
with:
command: |
set_param(0, 'ErrorIfLoadNewModel', 'off'),
results = wecSimTest,
assertSuccess(results);
startup-options: -noFigureWindows
run_linux_tests:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
release: [R2020b, R2021a, R2021b, latest]
name: MATLAB ${{ matrix.release }}
release: [R2020b, R2021a, R2021b, R2022a, R2022b, R2023a, latest]
name: MATLAB ${{ matrix.release }} on Linux
steps:
- name: Check out repository
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
lfs: true
- name: Check out LFS objects
run: git lfs checkout
- name: Install MATLAB
uses: matlab-actions/setup-matlab@v1
uses: matlab-actions/setup-matlab@v2-beta
with:
release: ${{ matrix.release }}
release: ${{ matrix.release }}
products: Simulink Simscape Simscape_Multibody
- name: Install WEC-Sim
uses: matlab-actions/run-command@v1
with:
command: addpath(genpath('source'));, savepath pathdef.m;
command: |
addpath(genpath('source')),
savepath pathdef.m;
- name: Run tests and generate artifacts
uses: matlab-actions/run-command@v1
with:
command: results = wecSimTest, assertSuccess(results);
command: |
set_param(0, 'ErrorIfLoadNewModel', 'off'),
results = wecSimTest,
assertSuccess(results);
startup-options: -noFigureWindows
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
# Refer to [WEC-Sim documentation](http://wec-sim.github.io/WEC-Sim) for more information.
[![DOI](https://zenodo.org/badge/20451353.svg)](https://zenodo.org/badge/latestdoi/20451353)
[![Doc Build Status](https://github.com/WEC-Sim/WEC-Sim/actions/workflows/docs.yml/badge.svg)](https://github.com/WEC-Sim/WEC-Sim/actions/workflows/docs.yml)
[![MATLAB Build Status](https://github.com/WEC-Sim/WEC-Sim/actions/workflows/run-tests-master.yml/badge.svg)](https://github.com/WEC-Sim/WEC-Sim/actions/workflows/run-tests-master.yml)
[![MATLAB Build Status](https://github.com/WEC-Sim/WEC-Sim/actions/workflows/run-tests-dev.yml/badge.svg)](https://github.com/WEC-Sim/WEC-Sim/actions/workflows/run-tests-dev.yml)

[![Documentation](https://github.com/WEC-Sim/WEC-Sim/actions/workflows/docs.yml/badge.svg)](https://github.com/WEC-Sim/WEC-Sim/actions/workflows/docs.yml)
[![Run MATLAB tests on master branch](https://github.com/WEC-Sim/WEC-Sim/actions/workflows/run-tests-master.yml/badge.svg?branch=master)](https://github.com/WEC-Sim/WEC-Sim/actions/workflows/run-tests-master.yml)
[![Run MATLAB tests on dev branch](https://github.com/WEC-Sim/WEC-Sim/actions/workflows/run-tests-dev.yml/badge.svg?branch=dev)](https://github.com/WEC-Sim/WEC-Sim/actions/workflows/run-tests-dev.yml)

## WEC-Sim Repository

Expand Down
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@
# built documents.
#
# The short X.Y version.
version = 'v5.0.1'
version = 'v6.0'

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down
Loading

0 comments on commit d7eeefe

Please sign in to comment.