Skip to content

fix bug in printing exact exchange energy densities #62

fix bug in printing exact exchange energy densities

fix bug in printing exact exchange energy densities #62

Workflow file for this run

name: Build SPARC using conda-build toolchains and perform quick test (no upload)
on:
push:
branches:
- master
pull_request:
branches:
- master
workflow_dispatch:
jobs:
build-linux:
runs-on: ubuntu-latest
defaults:
run:
shell: bash -l {0}
strategy:
max-parallel: 5
steps:
- uses: actions/checkout@v3
- uses: conda-incubator/setup-miniconda@v2
with:
python-version: "3.10"
activate-environment: sparc-test
conda-build-version: ">=3.20"
mamba-version: "*"
channels: conda-forge,defaults
channel-priority: true
- name: Install boa dependencies
run: |
mamba install -c conda-forge "conda-build>=3.20" colorama pip ruamel ruamel.yaml rich mamba jsonschema
pip install git+https://github.com/mamba-org/boa.git
- name: Build with mambabuild
run: |
echo $CONDA_PREFIX
conda info
CPU_COUNT=2 conda mambabuild .conda/
- name: Install local build
run: |
mamba install --use-local sparc
- name: Test simple sparc run
run: |
cd tests/Cu_FCC/standard/
mpirun -n 2 sparc -name Cu_FCC
- name: Perform comprehensive tests using `quick_run`
run: |
cp $(which sparc) lib/
cd tests
export LD_LIBRARY_PATH=${CONDA_PREFIX}/lib:${LD_LIBRARY_PATH}
python SPARC_testing_script.py quick_run | tee output
n_failed=$(grep -o 'Tests failed: [0-9]\+' output | grep -o '[0-9]\+$')
# Force fail, see what happens
unset LD_LIBRARY_PATH
python -c "import os, re; match = re.findall(r'Tests failed: (\d+)', open('output').read()); [print('All pass'), os._exit(0)] if int(match[0]) == 0 else [print('Failed'), os._exit(1)]"
rm -rf output