Skip to content

Commit

Permalink
Merge branch 'main' into tidy-and-bump-version
Browse files Browse the repository at this point in the history
  • Loading branch information
bernstei committed Aug 29, 2024
2 parents 0686077 + 113f8f7 commit f11dd70
Show file tree
Hide file tree
Showing 21 changed files with 1,363 additions and 1,361 deletions.
22 changes: 17 additions & 5 deletions .github/workflows/pytests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,12 @@ jobs:
- name: Install dependencies from pip
run: |
echo "numpy<2" >> $PIP_CONSTRAINT
python3 -m pip install wheel setuptools numpy scipy click matplotlib pyyaml spglib rdkit flake8 pytest pytest-cov requests
python3 -m pip install wheel setuptools numpy scipy click matplotlib pyyaml spglib rdkit==2024.3.3 flake8 pytest pytest-cov requests
- name: Install latest ASE from pypi
run: |
echo PIP_CONSTRAINT $PIP_CONSTRAINT
python3 -m pip install ase
python3 -m pip install ase
echo -n "ASE VERSION "
python3 -c "import ase; print(ase.__file__, ase.__version__)"
Expand Down Expand Up @@ -105,15 +105,27 @@ jobs:
run: |
echo "search for torch version"
set +o pipefail
# echo "torch versions"
# python3 -m pip install torch==
# echo "torch versions to search"
# python3 -m pip install torch== 2>&1 | fgrep 'from versions' |
# sed -e 's/.*from versions: //' -e 's/)//' -e 's/,[ ]*/\n/g' | tac
# search for available torch version with +cpu support
for torch_version_test in $( python3 -m pip install torch== 2>&1 | fgrep 'from versions' |
sed -e 's/.*from versions: //' -e 's/)//' -e 's/,[ ]*/\n/g' | tac ); do
# for torch_version_test in $( python3 -m pip install torch== 2>&1 | fgrep 'from versions' |
# sed -e 's/.*from versions: //' -e 's/)//' -e 's/,[ ]*/\n/g' | tac ); do
wget https://pypi.org/pypi/torch/json -O torch_versions
for torch_version_test in $( python3 -c "import json; print(' '.join(json.load(open('torch_versions'))['releases'].keys()))" | sed 's/ /\n/g' | tac ); do
echo "check torch_version_test $torch_version_test"
set +e
python3 -m pip install --dry-run torch==${torch_version_test}+cpu \
-f https://download.pytorch.org/whl/torch_stable.html > /dev/null 2>&1
-f https://download.pytorch.org/whl/torch_stable.html 2>&1
search_stat=$?
echo "got search_stat $search_stat"
set -e
if [ $search_stat == 0 ]; then
echo "got valid +cpu version, exiting"
torch_version=${torch_version_test}
break
fi
Expand Down
6 changes: 0 additions & 6 deletions tests/assets/orca.ase

This file was deleted.

22 changes: 0 additions & 22 deletions tests/assets/orca.engrad

This file was deleted.

21 changes: 0 additions & 21 deletions tests/assets/orca.inp

This file was deleted.

Loading

0 comments on commit f11dd70

Please sign in to comment.