Skip to content

Commit 4c4afec

Browse files
committed
Fix merge conflict
2 parents d78e9fb + 8bbea02 commit 4c4afec

3 files changed

Lines changed: 60 additions & 3 deletions

File tree

.github/workflows/python-app.yml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
# This workflow will install Python dependencies, run tests and lint with a single version of Python
2+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
3+
4+
name: prepmd CI
5+
6+
on:
7+
push:
8+
branches: [main]
9+
pull_request:
10+
schedule:
11+
- cron: '0 8 * * 1'
12+
workflow_dispatch:
13+
14+
jobs:
15+
tests:
16+
name: Run tests
17+
runs-on: ${{ matrix.os }}
18+
strategy:
19+
fail-fast: false
20+
matrix:
21+
os: [ubuntu-24.04, windows-2025, macos-15]
22+
python-version: ["3.13"]
23+
24+
env:
25+
KEY_MODELLER: MODELIRANJE
26+
27+
steps:
28+
- name: Checkout repo
29+
uses: actions/checkout@v5.0.0
30+
31+
- name: Cache conda packages
32+
uses: actions/cache@v4
33+
with:
34+
path: ~/.conda/pkgs
35+
key: ${{ runner.os }}-conda-${{ hashFiles('environment.yaml') }}
36+
restore-keys: |
37+
${{ runner.os }}-conda-
38+
39+
- name: Set up Mambaforge
40+
uses: conda-incubator/setup-miniconda@v3
41+
with:
42+
use-mamba: true
43+
python-version: ${{ matrix.python-version }}
44+
environment-file: environment.yaml
45+
activate-environment: prep
46+
auto-update-conda: true
47+
auto-activate-base: false
48+
49+
- name: Verify environment
50+
shell: bash -l {0}
51+
run: |
52+
conda info
53+
conda list
54+
55+
- name: Run test suite
56+
shell: bash -l {0}
57+
run: pytest -v

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@ A utility to automatically prepare structures from the PDB for molecular dynamic
1313

1414
## Installation
1515
* Install [Conda](https://conda-forge.org/download/) (if you don't already have it)
16-
* Clone this repo and enter the folder:
17-
`git clone git@github.com:HECBioSim/prepmd.git && cd prepmd`
16+
* Clone this repo and enter the folder: `git clone https://github.com/CCPBioSim/mdprep.git && cd prepmd`
1817
* Run `conda env create --name prepmd --file environment.yaml && conda activate prepmd && pip install .`
1918
* For the modeller part of the workflow to work, you need to get a [modeller license key](https://salilab.org/modeller/registration.html) and add it to modeller's config.py file. If you use conda, the key will be in `envs/prep/lib/modeller-10.7/modlib/modeller/config.py` relative to the path where conda is installed.
2019
* After installing, run `pytest` to run tests.
@@ -39,4 +38,4 @@ A utility to automatically prepare structures from the PDB for molecular dynamic
3938

4039
## License
4140

42-
None, yet
41+
None, yet

environment.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,4 @@ dependencies:
1111
- pdbfixer=1.11
1212
- modeller=10.7
1313
- biopython=1.85
14+
- pytest=8.4.2

0 commit comments

Comments
 (0)