diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2023-07-07 21:04:08 +0200 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2023-07-07 21:09:30 +0200 |
commit | 48deb72574416f431da3e805c52dbc76101e327e (patch) | |
tree | 46f91990d1afb5e471e72a01e0ac9d8635147d2b /.github/workflows/ci.yml | |
parent | Makefile: add release target (diff) | |
download | cimple-48deb72574416f431da3e805c52dbc76101e327e.tar.gz cimple-48deb72574416f431da3e805c52dbc76101e327e.zip |
support code coverage report generation
Diffstat (limited to '')
-rw-r--r-- | .github/workflows/ci.yml | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 414e6fc..e207ccf 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -46,8 +46,27 @@ jobs: - name: Run Valgrind tests run: make test/valgrind + coverage: + runs-on: ubuntu-latest + name: Coverage report + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Install dependencies + run: | + sudo apt-get update + sudo DEBIAN_FRONTEND=noninteractive apt-get install -yq --no-install-recommends gcovr libgit2-dev libsqlite3-dev python3-pytest valgrind + - name: Generate report + run: make coverage + - name: Upload report + uses: actions/upload-artifact@v3 + with: + name: coverage + path: ./build/coverage/ + if-no-files-found: error + publish: - needs: [lint, build] + needs: [lint, build, coverage] runs-on: ubuntu-latest name: 'Docker: publish' steps: |