Generate a coverage report in CI (#1736)

This commit is contained in:
Rangi
2025-07-08 21:39:11 -04:00
committed by GitHub
parent 8c50839109
commit 9acba4b412
4 changed files with 46 additions and 10 deletions

View File

@@ -1,4 +1,4 @@
name: Code coverage checking
name: Diff completeness check
on: pull_request
jobs:

View File

@@ -9,4 +9,4 @@ jobs:
uses: actions/checkout@v4
- name: Check format
run: |
./contrib/checkformat.bash
contrib/checkformat.bash

30
.github/workflows/coverage.yml vendored Normal file
View File

@@ -0,0 +1,30 @@
name: Code coverage report
on:
- push
- pull_request
jobs:
coverage:
runs-on: ubuntu-22.04
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Install deps
shell: bash
run: |
./.github/scripts/install_deps.sh ubuntu
- name: Install LCOV
run: |
sudo apt-get install lcov
- name: Install test dependency dependencies
shell: bash
run: |
test/fetch-test-deps.sh --get-deps ubuntu
- name: Generate coverage report
run: |
contrib/coverage.bash false
- name: Upload coverage report
uses: actions/upload-artifact@v4
with:
name: coverage-report
path: coverage