Skip to content

Commit

Permalink
Update testall.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
AaronBrennan1 authored Sep 26, 2024
1 parent 1a79641 commit a23886e
Showing 1 changed file with 3 additions and 13 deletions.
16 changes: 3 additions & 13 deletions .github/workflows/testall.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,27 +6,17 @@ on:

jobs:
build:
runs-on: ubuntu-latest # Use GitHub-hosted runner
runs-on: self-hosted
steps:
- uses: actions/checkout@v2

- name: Clone COBRA Toolbox
run: |
git clone https://github.com/opencobra/cobratoolbox.git cobratoolbox
- name: Set up MATLAB
uses: matlab-actions/setup-matlab@v1
with:
release: R2023a # Use a supported release

- name: Run MATLAB tests
uses: matlab-actions/run-command@v1
with:
command: |
run('cobratoolbox/initCobraToolbox.m');
diary('test_results.txt');
run('cobratoolbox/runTestsAndGenerateReport.m');
diary off;
run: |
matlab -batch "run('cobratoolbox/initCobraToolbox.m'); diary('test_results.txt'); run('cobratoolbox/runTestsAndGenerateReport.m'); diary off;"
- name: Upload Test Report
uses: actions/upload-artifact@v4
Expand Down

0 comments on commit a23886e

Please sign in to comment.