bug in disjoin and adjoin when spin paired #7
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: Compute code coverage for MRChem | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
env: | |
BUILD_TYPE: Debug | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up environment | |
uses: conda-incubator/setup-miniconda@v2 | |
with: | |
auto-update-conda: true | |
auto-activate-base: false | |
activate-environment: mrchem-codecov | |
environment-file: .github/mrchem-codecov.yml | |
channel-priority: true | |
python-version: 3.6 | |
- name: Configure | |
shell: bash -l {0} | |
run: | | |
python ./setup --type=$BUILD_TYPE --arch-flags=false --coverage --generator=Ninja --prefix=$GITHUB_WORKSPACE/Software/MRChem build | |
- name: Build | |
shell: bash -l {0} | |
run: | | |
cmake --build build --config $BUILD_TYPE --target install -- -v -d stats | |
- name: Test MRChem and generate coverage report | |
shell: bash -l {0} | |
run: | | |
cd build | |
ctest -C $BUILD_TYPE --output-on-failure --verbose | |
lcov --version | |
lcov --directory . --capture --output-file coverage.info | |
lcov --remove coverage.info '/usr/*' --output-file coverage.info | |
lcov --remove coverage.info 'external/*' --output-file coverage.info | |
lcov --remove coverage.info 'test/*' --output-file coverage.info | |
lcov --list coverage.info | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v1 |