Adapt to FLINT 3 #321
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: Code Coverage | |
on: | |
push: { branches: [ "master" ] } | |
pull_request: { branches: [ "master" ] } | |
concurrency: | |
group: coverage-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
codecov: | |
runs-on: ubuntu-20.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 libexactreal/environment.yml | |
mamba env update --quiet -n test -f pyexactreal/environment.yml | |
conda list | |
- name: make check | |
shell: bash -l {0} | |
run: | | |
./bootstrap | |
export CXXFLAGS="$CXXFLAGS --coverage -O0 -UNDEBUG" | |
./configure --without-benchmark | |
make check | |
- name: create & post coverage report | |
shell: bash -l {0} | |
run: | | |
pushd libexactreal/test | |
find -type f -name '*.gcda' -exec gcov -pbs ../../../exact-real '{}' ';' | |
popd | |
pushd libexactreal/src | |
find -type f -name '*.gcda' -exec gcov -pbs ../../../exact-real '{}' ';' | |
popd | |
curl -s https://codecov.io/bash | bash -s - -X gcov -R `pwd` . | |
env: | |
MAKEFLAGS: -j2 |