Skip to content

Commit

Permalink
Update codecov.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
AaronBrennan1 authored Nov 5, 2024
1 parent 61a935f commit 0f74c1d
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Code Cov CI

on:
push:
branches: [develop] # Trigger workflow on push to develop
branches: [develop]
pull_request:
branches: [develop]

Expand All @@ -28,13 +28,7 @@ jobs:
# Run tests and generate coverage with MOcov
- name: Run MATLAB tests and generate MOcov coverage
run: |
matlab -batch "
addpath('/opt/MOcov');
mocov('-cover', 'src', ...
'-expression', 'result = runtests("test"); assert(all([result.Passed]), "Some tests failed.");', ...
'-cover_xml_file', 'coverage.xml', ...
'-method', 'file');
"
matlab -batch "addpath('/opt/MOcov'); mocov('-cover', 'src', '-expression', 'result = runtests(\"test\"); assert(all([result.Passed]), \"Some tests failed.\");', '-cover_xml_file', 'coverage.xml', '-method', 'file');"
# Upload coverage report to Codecov
- name: Upload coverage to Codecov
Expand Down

0 comments on commit 0f74c1d

Please sign in to comment.