Unverified Commit c3b094f7 authored by Dominik Charousset's avatar Dominik Charousset Committed by GitHub

Merge pull request #1463

Add GitHub action for code coverage via codecov
parents 7bcb25d0 fad8bd88
# Note: we use a build with exceptions disabled for gcov, because it generates
# more accurate stats on branches.
name: codecov
on:
pull_request:
push:
branches:
- master
env:
CTEST_NO_TESTS_ACTION: error
jobs:
codecov:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: install-robot
run: |
pip install \
robotframework \
robotframework-requests \
robotframework-websocketclient
- name: configure
run: |
cmake \
-S . \
-B build \
-DCAF_ENABLE_ROBOT_TESTS:BOOL=ON \
-DCAF_ENABLE_EXCEPTIONS:BOOL=OFF \
-DCMAKE_CXX_FLAGS:STRING="-fno-exceptions -fprofile-arcs -ftest-coverage" \
-DCMAKE_BUILD_TYPE:STRING=Debug \
-DBUILD_SHARED_LIBS:BOOL=OFF
- name: build
run: make -C build -j 4
- name: test
run: ctest --test-dir build
- name: upload-coverage
uses: codecov/codecov-action@v3
with:
gcov: true
ignore:
- build
- examples
- libcaf_core/caf/decorator
- libcaf_core/src/decorator
- libcaf_core/test
- libcaf_io/test
- libcaf_net/test
- libcaf_openssl
- libcaf_test
- tools
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment