From 09e0f58692bcfc88ee338f55b5e8fc1b8130acdb Mon Sep 17 00:00:00 2001 From: Alon Faraj Date: Thu, 31 Aug 2023 11:56:39 +0300 Subject: [PATCH] update code coverage workflow --- .github/workflows/code-coverage.yml | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/.github/workflows/code-coverage.yml b/.github/workflows/code-coverage.yml index 12e987aed..296a75d2d 100644 --- a/.github/workflows/code-coverage.yml +++ b/.github/workflows/code-coverage.yml @@ -6,12 +6,22 @@ jobs: steps: - name: Checkout uses: actions/checkout@v3 - - name: Build - run: make LLAMA_CODE_COVERAGE=1 all - - name: Run tests + + - name: Dependencies + id: depends run: | - make test - make coverage + sudo apt-get update + 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 uses: codecov/codecov-action@v3 with: