write free function #309
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Coverage | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
coverage: | |
name: "Codecov" | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
name: checkout | |
with: | |
submodules: true | |
clean: true | |
fetch-depth: 2 | |
- name: "install dependencies" | |
run: | | |
set -e | |
sudo apt-get update || true | |
sudo apt-get install -y ninja-build | |
sudo python3 -m pip install --upgrade pip | |
sudo pip3 install scikit-build | |
sudo pip3 install cmake requests gitpython gcovr pyyaml | |
- name: "cmake" | |
env: | |
CC: clang | |
CXX: clang++ | |
run: cmake . -GNinja -Bbuild-coverage -DCOVERAGE=ON -DEXAMPLES=OFF | |
- name: "build report" | |
env: | |
CTEST_OUTPUT_ON_FAILURE: 1 | |
run: cmake --build build-coverage --target ctest_coverage -- -j4 | |
- name: "upload" | |
uses: codecov/[email protected] | |
with: | |
files: build-coverage/ctest_coverage.xml | |
verbose: false |