C/C++ CI #262
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: C/C++ CI | |
on: [push, pull_request] | |
# push: | |
# branches: [ master ] | |
# pull_request: | |
# branches: [ master ] | |
jobs: | |
build: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-python@v2 | |
with: | |
python-version: '3.7' | |
- name: dependencies | |
run: | | |
sudo apt update -qq | |
sudo apt install swig libboost-dev libarmadillo9 libarmadillo-dev cmake python3-setuptools python3-numpy python3-pip lcov | |
- name: configure | |
run: mkdir build && cd build && cmake -DBUILD_R=no -DCMAKE_BUILD_TYPE=DEBUG -DENABLE_TESTS=ON .. | |
- name: build | |
run: cd build && VERBOSE=1 make develop-python-user | |
- name: test | |
run: | | |
cd build | |
/usr/bin/python3 -m pip install coverage nose | |
make tests | |
lcov --directory CMakeFiles/gridpp.dir/src/api --capture --output-file coverage.info | |
lcov --remove coverage.info '/usr/*' --output-file coverage.info | |
lcov --list coverage.info | |
# - name: test | |
# run: | | |
# /usr/bin/python3 -c "import gridpp; print(gridpp.version())" | |
# /usr/bin/python3 -m pip install --upgrade pip | |
# /usr/bin/python3 -m pip install coverage nose | |
# coverage run --omit */*-packages/*,*tests* -m nose | |
# coverage report |