seitime-frappe/.github/helper/install_bench.sh
2024-09-12 01:31:27 +02:00

18 lines
390 B
Bash

#!/bin/bash
set -e
cd ~ || exit
echo "::group::Install Bench"
pip install frappe-bench
echo "::endgroup::"
echo "::group::Init Bench"
bench -v init frappe-bench --skip-assets --python "$(which python)" --frappe-path "${GITHUB_WORKSPACE}"
cd ./frappe-bench || exit
bench -v setup requirements --dev
if [ "$TYPE" == "ui" ]
then
bench -v setup requirements --node;
fi
echo "::endgroup::"