Skip to content

Commit 5299be8

Browse files
authored
Refactor PyRosetta installation steps in workflow
1 parent d4790db commit 5299be8

File tree

1 file changed

+23
-2
lines changed

1 file changed

+23
-2
lines changed

.github/workflows/pyrosetta_installer.yml

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,31 @@ jobs:
5656
run: |
5757
python -m pip install --upgrade pip setuptools wheel
5858
59-
- name: Install PyRosetta using pyrosetta_installer
59+
# - name: Install PyRosetta using pyrosetta_installer
60+
# run: |
61+
# pip install --no-cache-dir pyrosetta_installer
62+
# python -c 'import pyrosetta_installer; pyrosetta_installer.install_pyrosetta(mirror=${{ matrix.mirror.mirror }}, distributed=${{ matrix.flavor.distributed }}, type="${{ matrix.flavor.type }}")'
63+
64+
- name: Install pyrosetta_installer
6065
run: |
6166
pip install --no-cache-dir pyrosetta_installer
62-
python -c 'import pyrosetta_installer; pyrosetta_installer.install_pyrosetta(mirror=${{ matrix.mirror.mirror }}, distributed=${{ matrix.flavor.distributed }}, type="${{ matrix.flavor.type }}")'
67+
68+
- name: Install PyRosetta
69+
env:
70+
MIRROR: ${{ matrix.mirror.mirror }}
71+
DISTRIBUTED: ${{ matrix.flavor.distributed }}
72+
BUILD_TYPE: ${{ matrix.flavor.type }}
73+
run: |
74+
python - <<'PY'
75+
import os
76+
import pyrosetta_installer
77+
78+
pyrosetta_installer.install_pyrosetta(
79+
mirror=int(os.environ["MIRROR"]),
80+
distributed=int(os.environ["DISTRIBUTED"]),
81+
type=os.environ["BUILD_TYPE"],
82+
)
83+
PY
6384
6485
- name: Sanity check import + init
6586
run: |

0 commit comments

Comments
 (0)