-
Notifications
You must be signed in to change notification settings - Fork 4
75 lines (75 loc) · 2.71 KB
/
CI.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
name: CI
on:
pull_request:
branches:
- master
push:
branches:
- master
tags: '*'
schedule:
- cron: '00 04 * * 1' # 4am every Monday
workflow_dispatch:
jobs:
test_repo:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.6, 3.9]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install PyTorch
run: pip install torch==1.7.1+cpu -f https://download.pytorch.org/whl/torch_stable.html
- name: Install other dependencies
run: pip install numpy biopython PeptideBuilder colorama
- name: Test install
run: pip install .
- name: Test help
run: python bin/cgdms -h
- name: Test import
run: python bin/cgdms
- name: Test makeinput
run: python bin/cgdms makeinput -i cgdms/protein_data/example/1CRN.pdb -s cgdms/protein_data/example/1CRN.ss2
- name: Test simulate
run: python bin/cgdms simulate -i cgdms/protein_data/example/1CRN.txt -o traj.pdb -s predss -n 500 -r 100 -d cpu
- name: Test energy
run: python bin/cgdms energy -i cgdms/protein_data/example/1CRN.txt
- name: Test thread
run: python bin/cgdms thread -i cgdms/protein_data/example/1CRN.txt -s cgdms/protein_data/example/seqs.txt -m 50
- name: Test design
run: python bin/cgdms design -i cgdms/protein_data/example/1CRN.txt -n 5 -m 50
test_pypi:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.6, 3.9]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install PyTorch
run: pip install torch==1.7.1+cpu -f https://download.pytorch.org/whl/torch_stable.html
- name: Install other dependencies
run: pip install numpy biopython PeptideBuilder colorama
- name: Test install
run: pip install cgdms
- name: Test help
run: cgdms -h
- name: Test import
run: python -c "import cgdms"
- name: Test makeinput
run: cgdms makeinput -i cgdms/protein_data/example/1CRN.pdb -s cgdms/protein_data/example/1CRN.ss2
- name: Test simulate
run: cgdms simulate -i cgdms/protein_data/example/1CRN.txt -o traj.pdb -s predss -n 500 -r 100 -d cpu
- name: Test energy
run: cgdms energy -i cgdms/protein_data/example/1CRN.txt
- name: Test thread
run: cgdms thread -i cgdms/protein_data/example/1CRN.txt -s cgdms/protein_data/example/seqs.txt -m 50
- name: Test design
run: cgdms design -i cgdms/protein_data/example/1CRN.txt -n 5 -m 50