Fix GitHub actions failures #185
This file contains hidden or 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: CI using MATLAB | |
| on: | |
| push: | |
| paths-ignore: | |
| - 'docs/**' | |
| - '**.md' | |
| - '**.png' | |
| - '**.svg' | |
| - '**.txt' | |
| - '**.xml' | |
| pull_request: | |
| paths-ignore: | |
| - 'docs/**' | |
| - '**.md' | |
| - '**.png' | |
| - '**.svg' | |
| - '**.txt' | |
| - '**.xml' | |
| schedule: | |
| # Every Monday at 03:00 UTC | |
| - cron: '0 3 * * 1' | |
| jobs: | |
| job-Remote-Microgrid-unit-tests: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@v4 | |
| - name: Setup MATLAB | |
| uses: matlab-actions/setup-matlab@v2 | |
| with: | |
| release: R2025b | |
| cache: true | |
| products: | | |
| Simulink | |
| Simscape | |
| Simscape_Electrical | |
| Optimization_Toolbox | |
| Stateflow | |
| - name: Run tests | |
| uses: matlab-actions/run-command@v2 | |
| with: | |
| command: 'openProject(pwd); TestRunnerRemoteMicrogrid;' | |
| job-Industrial-Microgrid-unit-tests: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@v4 | |
| - name: Setup MATLAB | |
| uses: matlab-actions/setup-matlab@v2 | |
| with: | |
| release: R2025b | |
| cache: true | |
| products: | | |
| Simulink | |
| Simscape | |
| Simscape_Electrical | |
| Optimization_Toolbox | |
| Stateflow | |
| - name: Run tests | |
| uses: matlab-actions/run-command@v2 | |
| with: | |
| command: 'openProject(pwd); TestRunnerIndustrialMicrogrid;' | |
| job-Techno-EconomicAnalysis-unit-tests: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@v4 | |
| - name: Setup MATLAB | |
| uses: matlab-actions/setup-matlab@v2 | |
| with: | |
| release: R2025b | |
| cache: true | |
| products: | | |
| Simulink | |
| Simscape | |
| Simscape_Electrical | |
| Optimization_Toolbox | |
| Stateflow | |
| - name: Run tests | |
| uses: matlab-actions/run-command@v2 | |
| with: | |
| command: 'openProject(pwd); TestRunnerTechnoEconomicAnalysis;' | |
| job-Microgrid-Control-unit-tests: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@v4 | |
| - name: Setup MATLAB | |
| uses: matlab-actions/setup-matlab@v2 | |
| with: | |
| release: R2025b | |
| cache: true | |
| products: | | |
| Simulink | |
| Simscape | |
| Simscape_Electrical | |
| Optimization_Toolbox | |
| Stateflow | |
| - name: Run tests | |
| uses: matlab-actions/run-command@v2 | |
| with: | |
| command: 'openProject(pwd); TestRunnerMicrogridControl;' |