Added a way to force ACTUAL_START_FIELD and END to be of type ints for VICON #128
This file contains hidden or 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: Code coverage | |
| on: [pull_request] | |
| env: | |
| BUILD_FOLDER: build | |
| EXAMPLES_FOLDER: examples | |
| jobs: | |
| build: | |
| strategy: | |
| matrix: | |
| include: | |
| - os: ubuntu-latest | |
| label: linux-64 | |
| prefix: /usr/share/miniconda3/envs/biorbd_eigen | |
| name: ${{ matrix.label }} | |
| runs-on: ${{ matrix.os }} | |
| defaults: | |
| run: | |
| shell: bash -l {0} | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Get number of CPU cores | |
| uses: SimenB/github-actions-cpu-cores@v1 | |
| id: cpu-cores | |
| - name: Setup environment | |
| uses: conda-incubator/setup-miniconda@v3 | |
| with: | |
| miniforge-version: latest | |
| activate-environment: ezc3d | |
| environment-file: environment.yml | |
| - name: Print conda info | |
| run: | | |
| conda info | |
| conda list | |
| - name: Install code coverage dependencies | |
| run: | | |
| conda install cmake git pkgconfig codecov lcov -cconda-forge | |
| conda list | |
| git submodule update --init --recursive | |
| - name: Perform code coverage | |
| run: | | |
| MAIN_FOLDER=`pwd` | |
| CONDA_ENV_PATH=$CONDA/envs/ezc3d | |
| mkdir -p $BUILD_FOLDER | |
| cd $BUILD_FOLDER | |
| cmake -DCMAKE_INSTALL_PREFIX=$CONDA_ENV_PATH -DCMAKE_BUILD_TYPE=Coverage -DBUILD_TESTS=ON -DBUILD_EXAMPLE=OFF -DBUILD_DOC=OFF -DUSE_MATRIX_FAST_ACCESSOR=OFF -DBINDER_PYTHON3=OFF .. | |
| make ezc3d_coverage -j${{ steps.cpu-cores.outputs.count }} | |
| lcov --directory . --capture --output-file coverage.info | |
| lcov --remove coverage.info '/usr/*' --output-file coverage.info | |
| lcov --list coverage.info | |
| bash <(curl -s https://codecov.io/bash) || echo "Codecov did not collect coverage reports" | |
| cd $MAIN_FOLDER |