Skip to content

PSCM toolbox loadPSCMfile function bug fix #25

PSCM toolbox loadPSCMfile function bug fix

PSCM toolbox loadPSCMfile function bug fix #25

name: Example
on:
pull_request_target:
branches:
- master
- main
- develop
jobs:
build:
runs-on: self-hosted
steps:
# Check out the PR’s head commit from the fork.
- name: Checkout PR head code
uses: actions/checkout@v4
with:
# Use the head repository and branch from the pull request event payload.
repository: ${{ github.event.pull_request.head.repo.full_name }}
ref: ${{ github.event.pull_request.head.ref }}
fetch-depth: 0
# Merge in the base branch (the target branch) to simulate a merged state.
- name: Merge base branch into PR
run: |
git fetch origin ${{ github.event.pull_request.base.ref }}
git merge origin/${{ github.event.pull_request.base.ref }}
- name: Run MATLAB Tests
run: |
matlab -batch "run('initCobraToolbox.m'); run('test/testAll.m');"
- name: Upload test results to Codecov
uses: codecov/test-results-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: testReport.junit.xml