From 838ad491b53e295c50ec1663163c66d0ae9abdab Mon Sep 17 00:00:00 2001 From: Isla Li Date: Tue, 26 Mar 2024 10:11:16 -0700 Subject: [PATCH 1/2] issue4: set up MATLAB workflow --- .github/workflows/matlab.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/matlab.yml diff --git a/.github/workflows/matlab.yml b/.github/workflows/matlab.yml new file mode 100644 index 0000000..3aed878 --- /dev/null +++ b/.github/workflows/matlab.yml @@ -0,0 +1,36 @@ +name: Run MATLAB Tests + +on: + pull_request: + branches: main + push: + branches: main + workflow_dispatch: + +jobs: + tests: + name: MATLAB Test + runs-on: ${{ matrix.os }} + strategy: + matrix: + matlab: [ "R2022b"] + os: [ubuntu-latest, windows-latest] + env: + MLM_LICENSE_FILE: ${{ secrets.MATLAB_LICENSE }} + steps: + - name: Check out repository + uses: actions/checkout@main + + - name: Set up MATLAB + uses: matlab-actions/setup-matlab@v2 + with: + release: ${{ matrix.matlab }} + cache: true + + - name: Run tests + uses: matlab-actions/run-tests@v2 + with: + source-folder: 'onc' + env: + TOKEN_STRING: ${{ secrets.TOKEN_STRING }} + From ac7fd85bb33d93be9b7016edea9ffd54be7c7e11 Mon Sep 17 00:00:00 2001 From: IslaL <142735981+IslaL@users.noreply.github.com> Date: Tue, 26 Mar 2024 13:24:00 -0700 Subject: [PATCH 2/2] Update variable name TOKEN_STRING to TOKEN --- .github/workflows/matlab.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/matlab.yml b/.github/workflows/matlab.yml index 3aed878..f8ab354 100644 --- a/.github/workflows/matlab.yml +++ b/.github/workflows/matlab.yml @@ -13,7 +13,7 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - matlab: [ "R2022b"] + matlab: ["R2022b"] os: [ubuntu-latest, windows-latest] env: MLM_LICENSE_FILE: ${{ secrets.MATLAB_LICENSE }} @@ -32,5 +32,5 @@ jobs: with: source-folder: 'onc' env: - TOKEN_STRING: ${{ secrets.TOKEN_STRING }} + TOKEN: ${{ secrets.TOKEN }}