fix: I-ALiRT isPlottable
erroring on empty instance
#529
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: MATLAB Tests and Packaging | |
on: [push] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref == 'refs/heads/main' && github.run_id || github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
test: | |
name: Run MATLAB Tests | |
strategy: | |
matrix: | |
release: ["R2023b", "R2024a", "R2024b"] | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@v4 | |
- name: Set up MATLAB | |
uses: matlab-actions/[email protected] | |
with: | |
release: ${{ matrix.release }} | |
products: MATLAB_Test Signal_Processing_Toolbox Statistics_and_Machine_Learning_Toolbox Text_Analytics_Toolbox | |
- name: Run tests | |
uses: matlab-actions/[email protected] | |
with: | |
tasks: check test | |
- name: Report results | |
uses: dorny/test-reporter@v1 | |
if: success() || failure() | |
with: | |
name: MATLAB Test Results (${{ matrix.release }}) | |
path: 'results.xml' | |
working-directory: 'artifacts' | |
reporter: java-junit | |
- name: Report coverage | |
uses: 5monkeys/cobertura-action@master | |
with: | |
path: 'artifacts/coverage.xml' | |
minimum_coverage: 80 | |
report_name: Coverage Report (${{ matrix.release }}) | |
package: | |
name: Package MATLAB Toolbox | |
runs-on: ubuntu-latest | |
if: github.ref == 'refs/heads/main' | |
needs: test | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@v4 | |
- name: Set up MATLAB | |
uses: matlab-actions/[email protected] | |
with: | |
release: R2023b | |
- name: Load Environment Variables | |
uses: aarcangeli/[email protected] | |
- name: Package toolbox | |
uses: matlab-actions/[email protected] | |
with: | |
tasks: package("${{ env.MAG_DATA_VISUALIZATION_VERSION }}") | |
- name: Upload toolbox | |
uses: actions/[email protected] | |
with: | |
name: 'MAG Data Visualization.mltbx' | |
path: artifacts | |
if-no-files-found: error | |
- name: Create release | |
uses: ncipollo/[email protected] | |
with: | |
tag: v${{ env.MAG_DATA_VISUALIZATION_VERSION }} | |
artifacts: 'artifacts/MAG Data Visualization.mltbx' | |
bodyFile: 'resources/release-notes.md' |