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 1b06d4e commit 832ea3f
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,10 @@ jobs:
# Adjust permissions if necessary
sudo chmod -R 755 /opt/MOcov
# Run MATLAB tests with MOcov to generate coverage
- name: Run MATLAB tests and generate MOcov coverage
run: |
matlab -batch "
addpath('/opt/MOcov/MOcov'); % Add MOcov to MATLAB path
test_suite = testsuite('test/test_myfunction.m');
cov_data = mocov('-cover', 'src', '-tests', test_suite, '-quiet', '-cover_xml_file', 'coverage.xml');
"
matlab -batch "addpath('/opt/MOcov/MOcov'); test_suite = testsuite('test/test_myfunction.m'); cov_data = mocov('-cover', 'src', '-tests', test_suite, '-quiet', '-cover_xml_file', 'coverage.xml');"
# Upload coverage report to Codecov
- name: Upload coverage to Codecov
Expand Down

0 comments on commit 832ea3f

Please sign in to comment.