diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml index cf934646d5..9354eb8dbb 100644 --- a/.github/workflows/codecov.yml +++ b/.github/workflows/codecov.yml @@ -9,15 +9,18 @@ jobs: build: runs-on: self-hosted steps: - - name: Checkout PR Code uses: actions/checkout@v4 + - name: Initialize and Update Submodules + run: | + git submodule update --init --recursive + - name: Merge PR with Develop run: | git fetch origin develop git checkout -b test-branch - git merge origin/develop --no-edit + git merge origin/develop --allow-unrelated-histories --no-edit - name: Clone COBRA Toolbox run: | diff --git a/.github/workflows/testall.yml b/.github/workflows/testall.yml deleted file mode 100644 index 703b7d9c87..0000000000 --- a/.github/workflows/testall.yml +++ /dev/null @@ -1,34 +0,0 @@ -name: MATLAB Tests - -on: - pull_request: - branches: - - '**' - -jobs: - build: - runs-on: self-hosted - steps: - - - name: Checkout PR Code - uses: actions/checkout@v4 - - - name: Merge PR with Develop - run: | - git fetch origin develop - git checkout -b test-branch - git merge origin/develop --no-edit - - - name: Clone COBRA Toolbox - run: | - git clone https://github.com/opencobra/cobratoolbox.git cobratoolbox - - - name: Run MATLAB Tests - 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 - with: - name: test-report - path: test_results.txt