Skip to content

Support building against fmt=10 #265

Support building against fmt=10

Support building against fmt=10 #265

Workflow file for this run

name: Code Coverage
on:
push: { branches: [ "master" ] }
pull_request: { branches: [ "master" ] }
concurrency:
group: coverage-${{ github.ref }}
cancel-in-progress: true
jobs:
codecov:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
with: { submodules: recursive, fetch-depth: 0 }
- uses: conda-incubator/setup-miniconda@v2
with: { miniforge-variant: "Mambaforge", miniforge-version: "latest" }
- name: install dependencies
shell: bash -l {0}
run: |
mamba env update --quiet -n test -f libintervalxt/environment.yml
mamba env update --quiet -n test -f pyintervalxt/environment.yml
conda list
- name: make check
shell: bash -l {0}
run: |
./bootstrap
./configure --prefix="$PREFIX" CXXFLAGS="$CXXFLAGS --coverage -O0 -fprofile-abs-path -UNDEBUG" --without-benchmark
make check
- name: create & post coverage report
shell: bash -l {0}
run: |
pushd libintervalxt/test
find -type f -name '*.gcda' -exec gcov -pbs ../../../intervalxt '{}' ';'
popd
pushd libintervalxt/src
find -type f -name '*.gcda' -exec gcov -pbs ../../../intervalxt '{}' ';'
popd
curl -s https://codecov.io/bash | bash -s - -X gcov -R `pwd` .
env:
MAKEFLAGS: -j2