7
7
- main
8
8
release :
9
9
types : [published]
10
- workflow_dispatch :
10
+ workflow_dispatch :
11
11
12
12
jobs :
13
13
build-and-test :
@@ -16,39 +16,32 @@ jobs:
16
16
fail-fast : false
17
17
matrix :
18
18
python-version : ["3.10", "3.11"]
19
- install-type : ['user', 'developer']
19
+ install-type : ["user", "developer"]
20
+
21
+ defaults :
22
+ run :
23
+ shell : bash -el {0}
20
24
21
25
steps :
22
- -
uses :
webfactory/[email protected]
23
- with :
24
- ssh-private-key : ${{ secrets.SSH_PRIVATE_KEY }}
25
26
- uses : actions/checkout@v4
26
27
with :
27
28
submodules : recursive
28
- - uses : actions/setup-python@v4
29
+
30
+ - uses : conda-incubator/setup-miniconda@v3
29
31
with :
32
+ environment-file : environment.yml
33
+ activate-environment : AlphaPulldown
30
34
python-version : ${{ matrix.python-version }}
31
- cache : " pip"
32
- - run : python -c "import sys; print(sys.version)"
33
- - run : |
34
- echo $CONDA/bin >> $GITHUB_PATH
35
- echo "$GITHUB_WORKSPACE/alphapulldown" >> $GITHUB_PATH
35
+ auto-update-conda : true
36
+ use-mamba : true
37
+
36
38
- if : matrix.install-type == 'user'
37
39
run : |
38
- conda install -y -c conda-forge mamba
39
- mamba create -n AlphaPulldown -c omnia -c bioconda -c conda-forge python==${{ matrix.python-version }} \
40
- openmm==8.0 pdbfixer==1.9 kalign2 hmmer hhsuite modelcif
41
- eval "$(conda shell.bash hook)"
42
- conda activate AlphaPulldown
43
40
pip install alphapulldown
44
41
pip install -U "jax[cuda12]"
42
+
45
43
- if : matrix.install-type == 'developer'
46
44
run : |
47
- conda install -y -c conda-forge mamba
48
- mamba create -n AlphaPulldown -c omnia -c bioconda -c conda-forge python==${{ matrix.python-version }} \
49
- openmm==8.0 pdbfixer==1.9 kalign2 hmmer hhsuite modelcif
50
- eval "$(conda shell.bash hook)"
51
- conda activate AlphaPulldown
52
45
pip install .
53
46
pip install -U "jax[cuda12]"
54
47
# export PYTHONPATH=$PWD/AlphaLink2:$PYTHONPATH
60
53
# python setup.py install --disable-cuda-ext
61
54
# cd ..
62
55
- run : |
63
- eval "$(conda shell.bash hook)"
64
- conda activate AlphaPulldown
65
56
python test/test_python_imports.py
66
57
pytest -s test/test_custom_db.py
67
58
pytest -s test/test_remove_clashes_low_plddt.py
71
62
pytest -s test/test_parse_fold.py
72
63
#export PYTHONPATH=$PWD/alphapulldown/analysis_pipeline:$PYTHONPATH
73
64
## Test analysis pipeline
74
- #conda install -c bioconda biopandas
75
- #pip install pyrosetta-installer
65
+ #conda install -c bioconda biopandas
66
+ #pip install pyrosetta-installer
76
67
#python -c 'import pyrosetta_installer; pyrosetta_installer.install_pyrosetta()'
77
68
#pytest -s test/test_pdb_analyser.py
78
69
#pytest -s test/test_get_good_inter_pae.py
@@ -83,22 +74,13 @@ jobs:
83
74
-
uses :
webfactory/[email protected]
84
75
with :
85
76
ssh-private-key : ${{ secrets.SSH_PRIVATE_KEY }}
86
- - name : Checkout
87
- uses : actions/checkout@v4
88
-
89
- - name : Free disk space
90
- run : |
91
- rm -rf /opt/hostedtoolcache
92
-
93
- - name : Login to Docker Hub
94
- uses : docker/login-action@v3
77
+ - uses : actions/checkout@v4
78
+ - run : rm -rf /opt/hostedtoolcache
79
+ - uses : docker/login-action@v3
95
80
with :
96
81
username : ${{ secrets.DOCKER_USERNAME }}
97
82
password : ${{ secrets.DOCKER_PASSWORD }}
98
-
99
- - name : Set up Docker Buildx
100
- uses : docker/setup-buildx-action@v3
101
-
83
+ - uses : docker/setup-buildx-action@v3
102
84
- name : Build and push fold container
103
85
if : github.event_name == 'push'
104
86
uses : docker/build-push-action@v5
108
90
push : true
109
91
tags : ${{ secrets.DOCKER_USERNAME }}/fold:latest
110
92
ssh : default
111
-
112
93
- name : Build and push fold container with version
113
94
if : github.event_name == 'release' && github.event.action == 'published'
114
95
uses : docker/build-push-action@v5
@@ -125,22 +106,13 @@ jobs:
125
106
-
uses :
webfactory/[email protected]
126
107
with :
127
108
ssh-private-key : ${{ secrets.SSH_PRIVATE_KEY }}
128
- - name : Checkout
129
- uses : actions/checkout@v4
130
-
131
- - name : Free disk space
132
- run : |
133
- rm -rf /opt/hostedtoolcache
134
-
135
- - name : Login to Docker Hub
136
- uses : docker/login-action@v3
109
+ - uses : actions/checkout@v4
110
+ - run : rm -rf /opt/hostedtoolcache
111
+ - uses : docker/login-action@v3
137
112
with :
138
113
username : ${{ secrets.DOCKER_USERNAME }}
139
114
password : ${{ secrets.DOCKER_PASSWORD }}
140
-
141
- - name : Set up Docker Buildx
142
- uses : docker/setup-buildx-action@v3
143
-
115
+ - uses : docker/setup-buildx-action@v3
144
116
- name : Build and push alphalink container
145
117
if : github.event_name == 'push'
146
118
uses : docker/build-push-action@v5
@@ -150,7 +122,6 @@ jobs:
150
122
push : true
151
123
tags : ${{ secrets.DOCKER_USERNAME }}/alphalink:latest
152
124
ssh : default
153
-
154
125
- name : Build and push alphalink container with version
155
126
if : github.event_name == 'release' && github.event.action == 'published'
156
127
uses : docker/build-push-action@v5
@@ -164,22 +135,13 @@ jobs:
164
135
build-analysis-container :
165
136
runs-on : ubuntu-latest
166
137
steps :
167
- - name : Checkout
168
- uses : actions/checkout@v4
169
-
170
- - name : Free disk space
171
- run : |
172
- rm -rf /opt/hostedtoolcache
173
-
174
- - name : Login to Docker Hub
175
- uses : docker/login-action@v3
138
+ - uses : actions/checkout@v4
139
+ - run : rm -rf /opt/hostedtoolcache
140
+ - uses : docker/login-action@v3
176
141
with :
177
142
username : ${{ secrets.DOCKER_USERNAME }}
178
143
password : ${{ secrets.DOCKER_PASSWORD }}
179
-
180
- - name : Set up Docker Buildx
181
- uses : docker/setup-buildx-action@v3
182
-
144
+ - uses : docker/setup-buildx-action@v3
183
145
- name : Build and push analysis container
184
146
if : github.event_name == 'push'
185
147
uses : docker/build-push-action@v5
@@ -188,7 +150,6 @@ jobs:
188
150
file : ./docker/analysis.dockerfile
189
151
push : true
190
152
tags : ${{ secrets.DOCKER_USERNAME }}/fold_analysis:latest
191
-
192
153
- name : Build and push analysis container with version
193
154
if : github.event_name == 'release' && github.event.action == 'published'
194
155
uses : docker/build-push-action@v5
0 commit comments