Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker #30

Open
wants to merge 14 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
64 changes: 63 additions & 1 deletion .github/workflows/gh-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,6 @@ jobs:
conda info
conda list


- name: Run IMDClient tests
run: |
pytest -n auto -v --cov=imdclient --cov-report=xml --color=yes imdclient/tests/test_imdclient.py
Expand All @@ -120,6 +119,69 @@ jobs:
name: codecov-${{ matrix.os }}-py${{ matrix.python-version }}
verbose: True

simulation_engine_tests:
if: github.repository == 'Becksteinlab/imdclient'
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Build information
run: |
uname -a
df -h
ulimit -a

- name: Install conda dependencies
uses: conda-incubator/setup-miniconda@v2
with:
python-version: "3.11"
environment-file: devtools/conda-envs/test_env.yaml
add-pip-as-python-dependency: true
architecture: x64

channels: conda-forge, defaults

activate-environment: imdclient-test
auto-update-conda: true
auto-activate-base: false
show-channel-urls: true
miniconda-version: latest

- name: Install MDAnalysis version
uses: MDAnalysis/install-mdanalysis@main
with:
version: latest
install-tests: true
installer: conda
shell: bash -l {0}

- name: Install package
run: |
python --version
python -m pip install . --no-deps

- name: Pull container
run: |
docker pull ghcr.io/becksteinlab/streaming-md-docker:main-Common-CPU

- name: Run GROMACS tests
run: |
pytest -v --color=yes imdclient/tests/test_gromacs.py

- name: Run LAMMPS tests
run: |
pytest -v --color=yes imdclient/tests/test_lammps.py

- name: Run NAMD tests
run: |
pytest -v --color=yes imdclient/tests/test_namd.py

- name: Dump docker logs on failure
if: failure()
run: |
docker logs sim

pylint_check:
if: github.repository == 'Becksteinlab/imdclient'
needs: environment-config
Expand Down
87 changes: 0 additions & 87 deletions .github/workflows/gromacs-integration.yaml

This file was deleted.

85 changes: 0 additions & 85 deletions .github/workflows/lammps-integration.yaml

This file was deleted.

101 changes: 0 additions & 101 deletions .github/workflows/namd-integration.yaml

This file was deleted.

1 change: 1 addition & 0 deletions devtools/conda-envs/test_env.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ dependencies:
- pytest-xdist
- codecov
- MDAnalysisTests>=2.7.0
- docker-py

# Pip-only installs
#- pip:
Expand Down
Binary file removed imdclient/data/gromacs/md/gromacs_v3_nst1.tpr
Binary file not shown.
Binary file removed imdclient/data/gromacs/md/gromacs_v3_nst1.trr
Binary file not shown.
Loading
Loading