Skip to content

Upgrade python package infrastructure and build arm wheels #170

Upgrade python package infrastructure and build arm wheels

Upgrade python package infrastructure and build arm wheels #170

Workflow file for this run

name: Unit test coverage
on:
push:
branches:
- master
pull_request:
branches:
- '**'
jobs:
build-and-test:
name: Unit test coverage
runs-on: ubuntu-24.04
env:
CXX: g++-13
steps:
- name: checkout repo & submodules
uses: actions/checkout@v5
with:
submodules: true
fetch-depth: 0
- name: install tools
run: |
sudo apt -y install lcov libcurl4-openssl-dev
- name: make build directory
run: mkdir build_dir
- name: run unit tests with coverage
run: |
cmake .. -DCMAKE_TOOLCHAIN_FILE=../vcpkg/scripts/buildsystems/vcpkg.cmake -DCMAKE_BUILD_TYPE=Debug -DENABLE_COVERAGE=ON
cmake --build . --parallel 4 --target unit_tests
ctest -j4 --output-on-failure
working-directory: build_dir
- name: upload coverage results
run: |
lcov --directory . --capture --output-file coverage.info
lcov --remove coverage.info '/usr/*' '*/vcpkg/*' '*/test/*' --output-file coverage.info --ignore-errors unused
lcov --list coverage.info
bash <(curl https://codecov.io/bash) -f coverage.info
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
working-directory: build_dir