Skip to content

Commit 9309e3e

Browse files
stigrjrobertodrilfreddy
authored
Prepare v1.0.1 (#357)
* Fix README * Fix zenodo contributor list * Add Singularity instruction to README * Copy Python frontend module to build dir always Fixes #317 * Fix NMR * Add NMR note in manual * Add doc strings for H_... interation operators * Add warning for complex NMR tensor eigenvalues * Fix typo * Check for NaN in NMR tensor * Handle missing MW guess orbitals, fixes #338 (#341) * Simplify GHA workflow * Create mrchem-gha.yml * Move code coverage job to GHA * Move Minazo linting to GHA * Install clang-format with APT * Clean up * Say bye to Travis * Danger lints * Simple * Remove Travis CI badge * Update DANGER_GITHUB_API_TOKEN * Scramble formatting to check Minazo works * Appease Minazo, the mighty bot * Fix runtime failure while reading basis set for SAD guess (#344) * Debug issue with the conda package * Perfect trimming of string * Token * Try with GITHUB_TOKEN * Refactor Danger action * Try to fix Minazo * Try to heal Minazo, part N * Update Gemfile.lock * Fix precision issue with chk initial guess (#347) * Change fetch-depth (#348) * Change fetch-depth See here: danger/danger#1103 (comment) * Check if GITHUB_TOKEN is necessary * Giggles * Which one do I need? * Tokens * Stupid tokens * Token in the wild * Don't know * Try something else * Remove conditional * back to pull_request * Make it stop * Revert * Clean up actions (#350) * Clean up actions * Fix YAML syntax * Fix MPI deadlock for shared-mem with bank * Update token in Minazo workflow * Use v1 of checkout action * Limit Eigen to single thread (#352) Threading lead to highly unpredictable results for large matrix-matrix multiplications. * Change clone command to https version (#353) * Change clone command to https version * Change clone command to https version * Misc fixes for v1.0.1 (#355) * Minor fixes in printed output - Print orbital norms regardless of MPI ownership. - Use proper absolute threshold for printed status of energy convergergence. * Fix README error in Singluarity command * Remove non-existing git version from tools/betzy.env * Force grid refinement on HydrogenFunction, closes #354 * Decommission Minazo (#356) * Bump version 1.0.1 Co-authored-by: Roberto Di Remigio <[email protected]> Co-authored-by: Roberto Di Remigio <[email protected]> Co-authored-by: Luca Frediani <[email protected]>
1 parent 9f5fff1 commit 9309e3e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+471
-394
lines changed

.ci/Dangerfile

-63
This file was deleted.

.ci/Gemfile

-4
This file was deleted.

.ci/Gemfile.lock

-71
This file was deleted.

.ci/cmake.sh

-19
This file was deleted.

.ci/report_versions.sh

-11
This file was deleted.

.github/mrchem-codecov.yml

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: mrchem-codecov
2+
channels:
3+
- conda-forge
4+
dependencies:
5+
- cmake
6+
- cxx-compiler
7+
- eigen
8+
- lcov
9+
- mrcpp
10+
- ninja
11+
- nlohmann_json
12+
- xcfun

.github/mrchem-gha.yml

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
name: mrchem-gha
2+
channels:
3+
- conda-forge
4+
dependencies:
5+
- cmake
6+
- cxx-compiler
7+
- eigen
8+
- mrcpp
9+
- ninja
10+
- nlohmann_json
11+
- xcfun

.github/workflows/build-test.yml

+23-14
Original file line numberDiff line numberDiff line change
@@ -26,28 +26,37 @@ jobs:
2626
steps:
2727
- uses: actions/checkout@v2
2828

29-
- name: Set up Python 3.6
30-
uses: actions/setup-python@v2
29+
- name: Cache conda
30+
uses: actions/cache@v1
31+
env:
32+
CACHE_NUMBER: 0 # Increase this value to reset cache if .github/mrchem-gha.yml has not changed
3133
with:
32-
python-version: 3.6
34+
path: ~/conda_pkgs_dir
35+
key:
36+
${{ matrix.os }}-conda-${{ env.CACHE_NUMBER }}-${{ hashFiles('.github/mrchem-gha.yml') }}
37+
38+
- uses: conda-incubator/setup-miniconda@v2
39+
with:
40+
auto-update-conda: true
41+
auto-activate-base: false
42+
activate-environment: mrchem-gha
43+
environment-file: .github/mrchem-gha.yml
44+
channel-priority: true
45+
python-version: 3.6
46+
use-only-tar-bz2: true # IMPORTANT: This needs to be set for caching to work properly!
3347

34-
- name: Install dependencies
35-
run: |
36-
sudo chown -R $USER $CONDA
37-
$CONDA/bin/conda create --name mrchem python=3.6 eigen mrcpp xcfun nlohmann_json ninja -c conda-forge
3848
- name: Configure
39-
shell: bash
49+
shell: bash -l {0}
4050
run: |
41-
source $CONDA/bin/activate mrchem
42-
python ./setup --type=$BUILD_TYPE --omp --arch-flags=false --generator=Ninja --prefix=$GITHUB_WORKSPACE/Software/MRChem build --cmake-options="-DCMAKE_PREFIX_PATH=$CONDA_PREFIX -DPYTHON_EXECUTABLE=$CONDA_PREFIX/bin/python"
51+
python ./setup --type=$BUILD_TYPE --omp --arch-flags=false --generator=Ninja --prefix=$GITHUB_WORKSPACE/Software/MRChem build
52+
4353
- name: Build
44-
shell: bash
54+
shell: bash -l {0}
4555
run: |
46-
source $CONDA/bin/activate mrchem
4756
cmake --build build --config $BUILD_TYPE --target install -- -v -d stats
57+
4858
- name: Test
49-
shell: bash
59+
shell: bash -l {0}
5060
run: |
5161
cd build
52-
source $CONDA/bin/activate mrchem
5362
ctest -C $BUILD_TYPE --output-on-failure --verbose

.github/workflows/code-coverage.yml

+54
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: Compute code coverage for MRChem
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- master
10+
11+
env:
12+
BUILD_TYPE: Debug
13+
14+
jobs:
15+
build:
16+
runs-on: ubuntu-latest
17+
18+
steps:
19+
- uses: actions/checkout@v2
20+
21+
- name: Set up environment
22+
uses: conda-incubator/setup-miniconda@v2
23+
with:
24+
auto-update-conda: true
25+
auto-activate-base: false
26+
activate-environment: mrchem-codecov
27+
environment-file: .github/mrchem-codecov.yml
28+
channel-priority: true
29+
python-version: 3.6
30+
31+
- name: Configure
32+
shell: bash -l {0}
33+
run: |
34+
python ./setup --type=$BUILD_TYPE --arch-flags=false --coverage --generator=Ninja --prefix=$GITHUB_WORKSPACE/Software/MRChem build
35+
36+
- name: Build
37+
shell: bash -l {0}
38+
run: |
39+
cmake --build build --config $BUILD_TYPE --target install -- -v -d stats
40+
41+
- name: Test MRChem and generate coverage report
42+
shell: bash -l {0}
43+
run: |
44+
cd build
45+
ctest -C $BUILD_TYPE --output-on-failure --verbose
46+
lcov --version
47+
lcov --directory . --capture --output-file coverage.info
48+
lcov --remove coverage.info '/usr/*' --output-file coverage.info
49+
lcov --remove coverage.info 'external/*' --output-file coverage.info
50+
lcov --remove coverage.info 'test/*' --output-file coverage.info
51+
lcov --list coverage.info
52+
53+
- name: Upload coverage to Codecov
54+
uses: codecov/codecov-action@v1

0 commit comments

Comments
 (0)