From 997a88c2139a85483f29af0d847941bfc4999973 Mon Sep 17 00:00:00 2001 From: Alon Faraj Date: Thu, 31 Aug 2023 11:43:31 +0300 Subject: [PATCH] add code-coverage workflow --- .github/workflows/code-coverage.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/code-coverage.yml diff --git a/.github/workflows/code-coverage.yml b/.github/workflows/code-coverage.yml new file mode 100644 index 000000000..12e987aed --- /dev/null +++ b/.github/workflows/code-coverage.yml @@ -0,0 +1,18 @@ +name: Code coverage +on: [push, pull_request] +jobs: + run: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Build + run: make LLAMA_CODE_COVERAGE=1 all + - name: Run tests + run: | + make test + make coverage + - name: Upload coverage to Codecov + uses: codecov/codecov-action@v3 + with: + files: lcov-report/coverage.info