mirror of
https://github.com/ggerganov/llama.cpp.git
synced 2024-11-15 07:19:53 +00:00
9f62c0173d
* CI: Update actions/checkout to v4 * CI: Update actions/setup-python to v5 * CI: Update actions/upload-artifact to v4
41 lines
866 B
YAML
41 lines
866 B
YAML
name: Code Coverage
|
|
on: [push, pull_request]
|
|
|
|
env:
|
|
GGML_NLOOP: 3
|
|
GGML_N_THREADS: 1
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
run:
|
|
runs-on: ubuntu-20.04
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Dependencies
|
|
run: |
|
|
sudo apt-get update
|
|
sudo apt-get install build-essential gcc-8 lcov
|
|
|
|
- name: Build
|
|
run: CC=gcc-8 make -j LLAMA_CODE_COVERAGE=1 tests
|
|
|
|
- name: Run tests
|
|
run: CC=gcc-8 make test
|
|
|
|
- name: Generate coverage report
|
|
run: |
|
|
make coverage
|
|
make lcov-report
|
|
|
|
- name: Upload coverage to Codecov
|
|
uses: codecov/codecov-action@v3
|
|
env:
|
|
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
|
|
with:
|
|
files: lcov-report/coverage.info
|