Skip to content

Commit

Permalink
Skip coverage of C++ code
Browse files Browse the repository at this point in the history
We don't have any C++ code, so we can't check
its test coverage.
  • Loading branch information
benmwebb committed Apr 16, 2024
1 parent 79072e3 commit 568cacb
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,10 @@ jobs:
run: |
eval "$(conda shell.bash hook)"
conda activate python${{ matrix.python-version }}
rm -f ${CONDA_PREFIX}/lib/libimp_pmi.so* ${CONDA_PREFIX}/lib/_IMP_pmi.so
# Use same C/C++ compiler as conda
source ${CONDA_PREFIX}/etc/conda/activate.d/activate-gcc_linux-64.sh
source ${CONDA_PREFIX}/etc/conda/activate.d/activate-gxx_linux-64.sh
mkdir build && cd build
if test "${{ matrix.python-version }}" = "2.7" ; then PY2=on; else PY2=off; fi
cmake .. -DIMP_DIR=${CONDA_PREFIX}/lib/cmake/IMP -DUSE_PYTHON2=${PY2} -DCMAKE_CXX_FLAGS="-fprofile-arcs -ftest-coverage"
cmake .. -DIMP_DIR=${CONDA_PREFIX}/lib/cmake/IMP -DUSE_PYTHON2=${PY2}
make
./setup_environment.sh pytest --cov=.. --cov-branch --cov-report=xml -v ../test/test_*.py test/*/*.py
flake8 ../pyext/src/
${GCC/gcc/gcov} $(find . -name "*.gcno")
- uses: codecov/codecov-action@v3

0 comments on commit 568cacb

Please sign in to comment.