Skip to content

feat: add full support for HelioSwarm in app, import, export and visu… #422

feat: add full support for HelioSwarm in app, import, export and visu…

feat: add full support for HelioSwarm in app, import, export and visu… #422

Workflow file for this run

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: 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
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
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'