From 588ec40e6054db19777cdb57a3b3ca6c48259034 Mon Sep 17 00:00:00 2001 From: Chengyu HAN Date: Tue, 16 Jan 2024 20:07:28 -0600 Subject: [PATCH] ci: set up codecov --- .github/workflows/ci.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6517a2c0..2139ca6b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -42,3 +42,14 @@ jobs: install: base-devel mingw-w64-${{matrix.env}}-toolchain - run: make - run: make test + code-coverage: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Setup LCOV + uses: hrishikesh-kadam/setup-lcov@v1 + - name: Build and Run tests + run: make coverage -j + - name: Upload coverage to Codecov + uses: codecov/codecov-action@v3 + files: ./cov-html/libopenlibm.info