Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Codecov #2138

Merged
merged 5 commits into from
Jan 23, 2025
Merged

Codecov #2138

Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 12 additions & 11 deletions .github/workflows/code-coverage.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: code-coverage

on: [push, pull_request]
on: [pull_request]

jobs:
debug:
Expand Down Expand Up @@ -47,21 +47,22 @@ jobs:
lcov --remove cov.info "app/cxxopts*" -o cov.info
lcov --remove cov.info "src/test*" -o cov.info
lcov --list cov.info
mv cov.info coverage.info

- name: Genhtml Results Summary
working-directory: ${{runner.workspace}}/build
shell: bash
run: |
genhtml -o coverage cov.info
genhtml -o coverage coverage.info

# Made it past the first token issue.
# May need some more time to porpagate on the codecov side.
# - name: Upload coverage reports to Codecov
# uses: codecov/codecov-action@v5
# with:
# token: ${{ secrets.CODECOV_TOKEN }}
# slug: ERGO-Code/HiGHS
# fail_ci_if_error: true # optional (default = false)
# files: ${{runner.workspace}}/build/cov.info # optional
# # name: codecov-umbrella # optional
# verbose: true # optional (default = false)
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: ERGO-Code/HiGHS
fail_ci_if_error: true # optional (default = false)
files: ${{runner.workspace}}/build/coverage.info # optional
# name: codecov-umbrella # optional
verbose: true # optional (default = false)
Loading