-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ob3.1 compatibility update, added Dockerfile for running automated un…
…it tests
- Loading branch information
1 parent
ef7b1c3
commit 6606df2
Showing
28 changed files
with
375,264 additions
and
1,456 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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
name: CI | ||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
push: | ||
branches: | ||
- main | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Build and test with Docker | ||
run: | | ||
docker build --tag ci -f ./DOCKERFILE . | ||
docker run --rm ci |
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,55 @@ | ||
# EVOLVE Dockerfile for CI | ||
|
||
# Github Actions does not support GPU acceleration and the parallized amber pmemd engine is not available for free via conda. | ||
# The unittests regarding this are not executed | ||
|
||
|
||
FROM continuumio/miniconda3 | ||
|
||
# Setup a spot for the code | ||
WORKDIR /evolve | ||
# Install Python dependencies | ||
COPY environment.yml environment.yml | ||
RUN conda env create -f environment.yml | ||
|
||
# Activate environment | ||
SHELL ["conda", "run", "-n", "evolve", "/bin/bash", "-c"] | ||
|
||
|
||
# Copy necessary files | ||
COPY share share/ | ||
COPY unittests unittests/ | ||
COPY main.py . | ||
COPY evaluators.py . | ||
|
||
# This is necessary due to a bug in Docker | ||
RUN true | ||
|
||
COPY src ./src/ | ||
|
||
# Set Environment variables | ||
ENV PYTHONPATH="/evolve/:${PYTHONPATH}" | ||
|
||
ENV PATH="/opt/conda/envs/evolve/bin:$PATH" | ||
|
||
ENV CONDA_DEFAULT_ENV evolve | ||
|
||
ENV EVOLVE_GPU=FALSE | ||
|
||
SHELL ["conda", "run", "-n", "evolve", "/bin/bash", "-c"] | ||
|
||
# Chceck that openbabel is available | ||
RUN echo "Make sure openbabel is installed:" | ||
RUN python -c "from openbabel import openbabel" | ||
|
||
# Change to unittest directory | ||
WORKDIR /evolve/unittests | ||
|
||
|
||
# Execute tests | ||
RUN ["python", "test_gaapi.py"] | ||
RUN ["python", "test_openbabel.py"] | ||
RUN ["python", "test_StartGA_Run.py"] | ||
|
||
|
||
RUN ["/bin/bash"] |
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,27 @@ | ||
name: evolve | ||
channels: | ||
- conda-forge | ||
- omnia | ||
- defaults | ||
dependencies: | ||
- openbabel=3.1.0 | ||
- numpy=1.18.4=py37h8960a57_0 | ||
- openmm=7.4.1=py37_cuda101_rc_1 | ||
- openmmtools=0.19.0=py37_1 | ||
- pagmo=2.15.0=hec06268_1 | ||
- pip=20.1.1=pyh9f0ad1d_0 | ||
- ambertools=20.9 | ||
- pygmo=2.15.0=py37h2566bc3_0 | ||
- python=3.7.6=h8356626_5_cpython | ||
- six=1.15.0=pyh9f0ad1d_0 | ||
- sphinx=3.0.3=py_0 | ||
- sphinxcontrib-applehelp=1.0.2=py_0 | ||
- sphinxcontrib-bibtex=1.0.0=py_0 | ||
- sphinxcontrib-devhelp=1.0.2=py_0 | ||
- sphinxcontrib-htmlhelp=1.0.3=py_0 | ||
- sphinxcontrib-jsmath=1.0.1=py_0 | ||
- sphinxcontrib-napoleon=0.7=py_0 | ||
- sphinxcontrib-qthelp=1.0.3=py_0 | ||
- sphinxcontrib-serializinghtml=1.1.4=py_0 | ||
- future | ||
|
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
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
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
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.