-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update CI, fix compatibility with OpenMM 7.7 (#249)
* Only test against OpenFF Toolkit 0.10.3 and on Python 3.7+ * Tinker with CI * Update Python versions * Try `--use-pep517` * Pin to Openmm 7.6 * Debug: Turn off switching function in ALL cases * Attempt to isolate CustomNonbondedForce.setUseSwitchingFunction * Isolate mmopts * Debug * Focus tests more on old failures * Drop tinker stuff * Fix typo * Remove some debug code * Revert debug state * Fix syntax, add back Python 3.6 * Update src/openmmio.py Co-authored-by: Jeff Wagner <[email protected]> * Allow a version of the toolkit compatible with Python 3.6 Versions 0.10.1 and 0.10.2 are broken but not yet off of conda-forge, so the pinning here MUST ensure that old builds are 0.10.0 or OLDER * Unpin OpenMM * Allow old pip * Fix syntax in version constraints * Install dataclasses backport for networkx Co-authored-by: Jeff Wagner <[email protected]>
- Loading branch information
1 parent
a8659b2
commit c655df6
Showing
3 changed files
with
38 additions
and
37 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,10 @@ on: | |
branches: | ||
- "master" | ||
|
||
defaults: | ||
run: | ||
shell: bash -l {0} | ||
|
||
jobs: | ||
test: | ||
runs-on: ${{ matrix.os }} | ||
|
@@ -18,9 +22,11 @@ jobs: | |
- macOS-latest | ||
- ubuntu-latest | ||
python-version: | ||
- 3.6 | ||
- 3.7 | ||
- 3.8 | ||
- "3.6" | ||
- "3.7" | ||
- "3.8" | ||
- "3.9" | ||
|
||
env: | ||
CI_OS: ${{ matrix.os }} | ||
PYVER: ${{ matrix.python-version }} | ||
|
@@ -30,11 +36,12 @@ jobs: | |
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- uses: conda-incubator/[email protected] | ||
- name: Install dependencies with Minicondna | ||
uses: conda-incubator/[email protected] | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
activate-environment: test | ||
channel-priority: true | ||
mamba-version: "*" | ||
activate-environment: forcebalance-test | ||
environment-file: devtools/conda-envs/test_env.yaml | ||
auto-activate-base: false | ||
|
||
|
@@ -46,33 +53,19 @@ jobs: | |
ulimit -a | ||
- name: Environment Information | ||
shell: bash -l {0} | ||
run: | | ||
conda info --all | ||
conda list | ||
- name: Install OpenFF stack and OpenEye on Python 3.6+ | ||
if: ${{ matrix.python-version != 2.7}} | ||
shell: bash -l {0} | ||
run: | | ||
conda install openff-toolkit -c conda-forge -y | ||
# Need to replace ndcctools with this block | ||
# - name: Install Work Queue | ||
# shell: bash -l {0} | ||
# run: | | ||
# wget https://raw.githubusercontent.com/leeping/forcebalance/master/tools/install-cctools.sh | ||
# bash install-cctools.sh | ||
# echo "Checking for Work Queue import; if successful, no message will be printed" | ||
# python -c "import work_queue" | ||
# export PATH="$GITHUB_WORKSPACE/opt/cctools/current/bin:$PATH" | ||
|
||
- name: Install GROMACS | ||
shell: bash -l {0} | ||
run: | | ||
# This will not install double precision, needs to be replaced with a fresh build | ||
conda install gromacs=2019.1 -c bioconda -c conda-forge -y | ||
- name: Install Tinker | ||
run: | | ||
if [[ "$CI_OS" == 'ubuntu-latest' ]]; then | ||
|
@@ -101,26 +94,27 @@ jobs: | |
tar xvjf targets.tar.bz2 | ||
cd ../../ | ||
- name: Install backport of dataclasses | ||
if: ${{ matrix.python-version == 3.6}} | ||
run: | | ||
pip install dataclasses | ||
- name: Install package | ||
shell: bash -l {0} | ||
run: | | ||
# python setup.py install | ||
python -m pip install --no-deps . | ||
python -c "import forcebalance; print(forcebalance.__version__)" | ||
- name: Run tests | ||
run: | | ||
pytest -v --cov=forcebalance --cov-config=setup.cfg --durations=0 --cov-report=xml | ||
- name: Run water study | ||
shell: bash -l {0} | ||
run: | | ||
cd studies/001_water_tutorial | ||
tar xvjf targets.tar.bz2 | ||
ForceBalance very_simple.in | ||
cd ../../ | ||
- name: Run tests | ||
shell: bash -l {0} | ||
run: | | ||
pytest -v --cov=forcebalance --cov-config=setup.cfg --durations=0 --cov-report=xml | ||
- name: Codecov | ||
uses: codecov/[email protected] | ||
with: | ||
|
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