All Projects → matlab-actions → overview

matlab-actions / overview

Licence: other
Automate your workflows with GitHub actions for MATLAB.

Projects that are alternatives of or similar to overview

changed-files
Github action to retrieve all (added, copied, modified, deleted, renamed, type changed, unmerged, unknown) files and directories.
Stars: ✭ 733 (+1732.5%)
Mutual labels:  continuous-integration, ci, actions, github-actions, github-action
qodana-action
⚙️ Scan your Java, Kotlin, PHP, Python, JavaScript, TypeScript projects at GitHub with Qodana
Stars: ✭ 112 (+180%)
Mutual labels:  continuous-integration, ci, actions, github-actions, github-action
github-act-runner
act as self-hosted runner
Stars: ✭ 68 (+70%)
Mutual labels:  continuous-integration, ci, actions, github-actions
xray-action
... a GitHub action to import test results into "Xray" - A complete Test Management tool for Jira.
Stars: ✭ 16 (-60%)
Mutual labels:  continuous-integration, ci, actions, github-actions
Android-CICD
This repo demonstrates how to work on CI/CD for Mobile Apps 📱 using Github Actions 💊 + Firebase Distribution 🎉
Stars: ✭ 37 (-7.5%)
Mutual labels:  continuous-integration, ci, actions, github-actions
setup-jdk
(DEPRECATED) Set up your GitHub Actions workflow with a specific version of AdoptOpenJDK
Stars: ✭ 32 (-20%)
Mutual labels:  actions, github-actions, github-action
clojure-dependency-update-action
A simple GitHub Actions job to create Pull Requests for outdated dependencies in clojure projects
Stars: ✭ 37 (-7.5%)
Mutual labels:  actions, github-actions, github-action
branch-protection-bot
A bot tool to disable and re-enable "Include administrators" option in branch protection
Stars: ✭ 57 (+42.5%)
Mutual labels:  ci, actions, github-actions
link-snitch
GitHub Action to scan your site for broken links so you can fix them 🔗
Stars: ✭ 50 (+25%)
Mutual labels:  continuous-integration, actions, github-actions
recent-activity
Add your recent activity to your profile readme!
Stars: ✭ 87 (+117.5%)
Mutual labels:  actions, github-actions, github-action
prettier
🔨 Native, blazingly-fast Prettier CLI on Github Actions
Stars: ✭ 19 (-52.5%)
Mutual labels:  continuous-integration, ci, github-actions
assign-one-project-github-action
Automatically add an issue or pull request to specific GitHub Project(s) when you create and/or label them.
Stars: ✭ 140 (+250%)
Mutual labels:  actions, github-actions, github-action
action-netlify-deploy
🙌 Netlify deployments via GitHub actions
Stars: ✭ 32 (-20%)
Mutual labels:  actions, github-actions, github-action
nrwl-nx-action
A GitHub Action to wrap Nrwl Nx commands in your workflows.
Stars: ✭ 163 (+307.5%)
Mutual labels:  actions, github-actions, github-action
actions
Set of actions for implementing CI/CD with werf and GitHub Actions
Stars: ✭ 67 (+67.5%)
Mutual labels:  continuous-integration, actions, github-actions
action-junit-report
Reports junit test results as GitHub Pull Request Check
Stars: ✭ 103 (+157.5%)
Mutual labels:  ci, actions, github-actions
ssh2actions
Connect to GitHub Actions VM via SSH for interactive debugging
Stars: ✭ 62 (+55%)
Mutual labels:  actions, github-actions, github-action
github-create-release-action
Create a GitHub release from a Tag
Stars: ✭ 33 (-17.5%)
Mutual labels:  continuous-integration, ci, actions
setup-scheme
Github Actions CI / CD setup for Scheme
Stars: ✭ 13 (-67.5%)
Mutual labels:  continuous-integration, ci, github-actions
Cml
♾️ CML - Continuous Machine Learning | CI/CD for ML
Stars: ✭ 2,843 (+7007.5%)
Mutual labels:  continuous-integration, ci, github-actions

Use MATLAB with GitHub Actions

With GitHub® actions for MATLAB®, you can run MATLAB scripts, functions, and statements as part of your workflow. You also can run your MATLAB and Simulink® tests and generate artifacts such as JUnit test results and Cobertura code coverage reports. The actions let you run MATLAB code and Simulink models on self-hosted or GitHub-hosted runners:

  • To use a self-hosted runner, you must set up a computer with MATLAB (R2013b or later) as your runner. The runner uses the topmost MATLAB version on the system path to execute your workflow.

  • To use a GitHub-hosted runner, you must include the Setup MATLAB action in your workflow to set up MATLAB on the runner. Currently, this action is available only for public projects. It does not set up transformation products, such as MATLAB Coder™ and MATLAB Compiler™.

Overview of Actions

To run MATLAB in your workflow, use the appropriate actions when you define your workflow in the .github/workflows directory of your repository:

  • To set up MATLAB on a GitHub-hosted runner, use the Setup MATLAB action.
  • To execute a MATLAB script, function, or statement, use the Run MATLAB Command action.
  • To run MATLAB and Simulink tests and generate artifacts, use the Run MATLAB Tests action.

Setup MATLAB

Use the Setup MATLAB action when you want to run MATLAB code and Simulink models on a GitHub-hosted runner. The action sets up your specified MATLAB release (R2020a or later) on a Linux® virtual machine. If you do not specify a release, the action sets up the latest release of MATLAB.

When you define your workflow, specify this action as matlab-actions/setup-matlab@v1. For more information, see Action for Setting Up MATLAB on GitHub-Hosted Runner.

Run MATLAB Command

Use the Run MATLAB Command action to run MATLAB scripts, functions, and statements. You can use this action to flexibly customize your test run or add a MATLAB related step to your workflow.

When you define your workflow, specify this action as matlab-actions/run-command@v1. For more information, see Action for Running MATLAB Commands.

Run MATLAB Tests

Use the Run MATLAB Tests action to automatically run tests authored using the MATLAB Unit Testing Framework or Simulink Test™. You can use this action with optional inputs to generate various test and coverage artifacts.

When you define your workflow, specify this action as matlab-actions/run-tests@v1. For more information, see Action for Running MATLAB Tests.

Examples

Run MATLAB Tests on GitHub-Hosted Runner

Set up a GitHub-hosted runner to automatically run the tests in your MATLAB project and generate a JUnit test results report and a Cobertura code coverage report. To set up the latest release of MATLAB on the runner, specify the Setup MATLAB action in your workflow. To run the tests and generate the artifacts, specify the Run MATLAB Tests action.

name: Run MATLAB Tests on GitHub-Hosted Runner
on: [push]
jobs:
  my-job:
    name: Run MATLAB Tests and Generate Artifacts
    runs-on: ubuntu-latest
    steps:
      - name: Check out repository
        uses: actions/checkout@v2
      - name: Set up MATLAB
        uses: matlab-actions/setup-matlab@v1
      - name: Run tests and generate artifacts
        uses: matlab-actions/run-tests@v1
        with:
          test-results-junit: test-results/results.xml
          code-coverage-cobertura: code-coverage/coverage.xml

Run MATLAB Script on Self-Hosted Runner

Use a self-hosted runner to run the commands in a file named myscript.m in the root of your repository. To run the commands, specify the Run MATLAB Command action in your workflow.

name: Run MATLAB Script on Self-Hosted Runner
on: [push]
jobs:
  my-job:
    name: Run MATLAB Script
    runs-on: self-hosted
    steps:
      - name: Check out repository
        uses: actions/checkout@v2
      - name: Run script
        uses: matlab-actions/run-command@v1
        with:
          command: myscript

Notes

  • To use the GitHub actions for MATLAB, enable GitHub Actions for your repository. For more information about GitHub Actions permissions, see Disabling or limiting GitHub Actions for a repository.
  • When you use the Setup MATLAB, Run MATLAB Command, and Run MATLAB Tests actions, you execute third-party code that is licensed under separate terms.

See Also

Contact Us

If you have any questions or suggestions, please contact MathWorks® at [email protected].

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].