update code coverage workflow
This commit is contained in:
parent
997a88c213
commit
09e0f58692
1 changed files with 15 additions and 5 deletions
20
.github/workflows/code-coverage.yml
vendored
20
.github/workflows/code-coverage.yml
vendored
|
@ -6,12 +6,22 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
- name: Build
|
|
||||||
run: make LLAMA_CODE_COVERAGE=1 all
|
- name: Dependencies
|
||||||
- name: Run tests
|
id: depends
|
||||||
run: |
|
run: |
|
||||||
make test
|
sudo apt-get update
|
||||||
make coverage
|
sudo apt-get install build-essential gcc-8
|
||||||
|
|
||||||
|
- name: Build
|
||||||
|
run: make -j LLAMA_CODE_COVERAGE=1 tests
|
||||||
|
|
||||||
|
- name: Run tests
|
||||||
|
run: make test
|
||||||
|
|
||||||
|
- name: Generate coverage report
|
||||||
|
run: make coverage
|
||||||
|
|
||||||
- name: Upload coverage to Codecov
|
- name: Upload coverage to Codecov
|
||||||
uses: codecov/codecov-action@v3
|
uses: codecov/codecov-action@v3
|
||||||
with:
|
with:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue