forked from pyscf/pyscf
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from pyscf/master
Merge pyscf/pyscf to HPQC-LABS/pyscf
- Loading branch information
Showing
888 changed files
with
99,668 additions
and
17,605 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,7 +26,7 @@ jobs: | |
fail-fast: false | ||
matrix: | ||
os: [ubuntu-20.04] | ||
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"] | ||
python-version: ["3.8", "3.12"] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
|
@@ -36,17 +36,18 @@ jobs: | |
- name: Install and Test | ||
run: ./.github/workflows/run_ci.sh | ||
- name: Upload to codecov | ||
if: matrix.python-version == '3.8' | ||
uses: codecov/[email protected] | ||
with: | ||
token: ${{secrets.CODECOV_TOKEN}} | ||
|
||
linux-build-aarch64: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
fail-fast: true | ||
matrix: | ||
os: [ubuntu-20.04] | ||
pyver: [cp37-cp37m, cp38-cp38, cp39-cp39] | ||
pyver: [cp39-cp39] | ||
env: | ||
img: quay.io/pypa/manylinux2014_aarch64 | ||
steps: | ||
|
@@ -58,7 +59,7 @@ jobs: | |
run: | | ||
docker run --rm -v ${{ github.workspace }}:/src/pyscf:rw --workdir=/src/pyscf ${{ env.img }} \ | ||
bash -exc '/opt/python/${{ matrix.pyver }}/bin/pip install --upgrade pip setuptools && \ | ||
/opt/python/${{ matrix.pyver }}/bin/pip install "numpy!=1.16,!=1.17" "scipy!=1.5" h5py pytest pytest-cov pytest-timer pyberny geometric && \ | ||
/opt/python/${{ matrix.pyver }}/bin/pip install "numpy!=1.16,!=1.17" "scipy!=1.5" h5py==3.10 pytest pytest-cov pytest-timer pyberny geometric && \ | ||
yum install -y epel-release && \ | ||
yum-config-manager --enable epel && \ | ||
yum install -y openblas-devel gcc cmake curl && \ | ||
|
@@ -71,14 +72,14 @@ jobs: | |
echo 'pbc_tools_pbc_fft_engine = "NUMPY"' > .pyscf_conf.py && \ | ||
echo "dftd3_DFTD3PATH = './pyscf/lib/deps/lib'" >> .pyscf_conf.py && \ | ||
echo "scf_hf_SCF_mute_chkfile = True" >> .pyscf_conf.py && \ | ||
ulimit -s 20000 && /opt/python/${{ matrix.pyver }}/bin/pytest pyscf/ --ignore=pyscf/adc --ignore=pyscf/pbc/df --ignore=pyscf/pbc/cc -s -c setup.cfg --cov-report xml --cov-report term --cov-config .coveragerc --cov pyscf' | ||
ulimit -s 20000 && /opt/python/${{ matrix.pyver }}/bin/pytest pyscf/ --ignore=pyscf/adc --ignore=pyscf/pbc/df --ignore=pyscf/pbc/cc -s -c pytest.ini pyscf' | ||
macos-build: | ||
runs-on: macos-latest | ||
strategy: | ||
fail-fast: false | ||
fail-fast: true | ||
matrix: | ||
python-version: ["3.7"] | ||
python-version: ["3.10"] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: CI_conda | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build-conda-linux: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Setup conda | ||
uses: s-weigand/setup-conda@v1 | ||
with: | ||
update-conda: true | ||
conda-channels: conda-forge | ||
- run: conda --version | ||
- run: which python | ||
- name: Build conda package | ||
run: | | ||
export CMAKE_BUILD_PARALLEL_LEVEL=4 | ||
conda install -y conda-build | ||
conda config --set anaconda_upload False | ||
conda build --output-folder . conda |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,16 @@ | ||
#!/usr/bin/env bash | ||
python -m pip install --upgrade pip | ||
pip install "numpy!=1.16,!=1.17" "scipy!=1.5" h5py pytest pytest-cov pytest-timer | ||
pip install pyberny geometric | ||
pip install spglib | ||
pip install pyberny | ||
pip install --no-deps pyscf-dispersion | ||
|
||
#cppe | ||
version=$(python -c 'import sys; version=sys.version_info[:2]; print("{0}.{1}".format(*version))') | ||
if [ $version != '2.7' ] && [ $version != '3.5' ]; then | ||
if [ $version != '3.12' ]; then | ||
pip install geometric | ||
pip install spglib | ||
fi | ||
|
||
#cppe | ||
if [ "$RUNNER_OS" == "Linux" ] && [ $version != "3.12" ]; then | ||
pip install cppe | ||
fi |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
#!/usr/bin/env bash | ||
exit 0 | ||
#brew reinstall gcc |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
#!/usr/bin/env bash | ||
python -m pip install --upgrade pip | ||
pip install "numpy!=1.16,!=1.17" "scipy<=1.1" h5py pytest pytest-cov pytest-timer | ||
pip install pyberny geometric | ||
pip install "numpy!=1.16,!=1.17" scipy h5py pytest pytest-cov pytest-timer | ||
pip install pyberny | ||
|
||
#cppe | ||
version=$(python -c 'import sys; version=sys.version_info[:2]; print("{0}.{1}".format(*version))') | ||
if [ $version != '2.7' ] && [ $version != '3.5' ]; then | ||
pip install cppe | ||
if [ $version != '3.12' ]; then | ||
pip install geometric | ||
pip install spglib | ||
fi |
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
Oops, something went wrong.