Skip to content

Commit

Permalink
Merge pull request #2394 from farid-zare/CI
Browse files Browse the repository at this point in the history
Update codecov.yml
  • Loading branch information
farid-zare authored Feb 2, 2025
2 parents e937ad5 + cb97d9f commit 134fc06
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,14 @@ jobs:
steps:
- name: Checkout PR Code
uses: actions/checkout@v4
with:
submodules: recursive # Ensures GitHub Actions checks out submodules properly

- name: Initialize and Update Submodules
run: |
git submodule update --init --recursive
git submodule deinit --all --force # Remove broken submodules
git submodule update --init --recursive --force
git submodule sync --recursive
- name: Merge PR with Develop
run: |
Expand All @@ -30,6 +34,11 @@ jobs:
run: |
matlab -batch "run('cobratoolbox/initCobraToolbox.m'); diary('test_results.txt'); run('cobratoolbox/testAll.m'); diary off;"
- name: Debug: Check If Coverage File Exists
run: |
ls -l $(pwd)
find . -name "CodeCovTestResults.xml"
- name: Upload Test Report
uses: actions/upload-artifact@v4
with:
Expand All @@ -40,7 +49,7 @@ jobs:
if: always() # Ensure it runs even if tests fail
uses: codecov/codecov-action@v3
with:
files: CodeCovTestResults.xml
files: ${{ github.workspace }}/CodeCovTestResults.xml
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true
flags: matlab
Expand Down

0 comments on commit 134fc06

Please sign in to comment.