Skip to content

Commit 60d6763

Browse files
committed
fix: f-string; ci: skip site without PyMOL
1 parent 8786c0d commit 60d6763

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

ci/csubst_smoke.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,18 @@ csubst analyze \
3333
--iqtree_model GY+F3x4+R2 \
3434
--threads 1
3535

36+
# PyMOLがある時だけ site を実行
37+
python - <<'PY'
38+
import importlib.util, sys
39+
sys.exit(0 if importlib.util.find_spec("pymol") else 1)
40+
PY
41+
if [ $? -eq 0 ]; then
42+
echo "[SMOKE] run site (PyMOL available)"
43+
csubst site ... # 既存の引数
44+
else
45+
echo "[SMOKE] skip site (PyMOL not available in CI)"
46+
fi
47+
3648
# 代表的な出力の存在確認
3749
shopt -s nullglob
3850
CB=(csubst_cb_*.tsv)

0 commit comments

Comments
 (0)