solution for the conda-forge not available issue (#341)

Signed-off-by: chensuyue <suyue.chen@intel.com>
This commit is contained in:
chen, suyue
2024-06-28 17:55:11 +08:00
committed by GitHub
parent 7dd0506e08
commit 84a91bb990
15 changed files with 147 additions and 144 deletions

View File

@@ -112,15 +112,16 @@ function validate_megaservice() {
function validate_frontend() {
cd $WORKPATH/docker/ui/svelte
local conda_env_name="CodeTrans_e2e"
local conda_env_name="OPEA_e2e"
export PATH=${HOME}/miniforge3/bin/:$PATH
conda remove -n ${conda_env_name} --all -y
conda create -n ${conda_env_name} python=3.12 -y
# conda remove -n ${conda_env_name} --all -y
# conda create -n ${conda_env_name} python=3.12 -y
source activate ${conda_env_name}
sed -i "s/localhost/$ip_address/g" playwright.config.ts
conda install -c conda-forge nodejs -y && npm install && npm ci && npx playwright install --with-deps
# conda install -c conda-forge nodejs -y
npm install && npm ci && npx playwright install --with-deps
node -v && npm -v && pip list
exit_status=0

View File

@@ -111,15 +111,16 @@ function validate_megaservice() {
function validate_frontend() {
cd $WORKPATH/docker/ui/svelte
local conda_env_name="CodeTrans_e2e"
local conda_env_name="OPEA_e2e"
export PATH=${HOME}/miniforge3/bin/:$PATH
conda remove -n ${conda_env_name} --all -y
conda create -n ${conda_env_name} python=3.12 -y
# conda remove -n ${conda_env_name} --all -y
# conda create -n ${conda_env_name} python=3.12 -y
source activate ${conda_env_name}
sed -i "s/localhost/$ip_address/g" playwright.config.ts
conda install -c conda-forge nodejs -y && npm install && npm ci && npx playwright install --with-deps
# conda install -c conda-forge nodejs -y
npm install && npm ci && npx playwright install --with-deps
node -v && npm -v && pip list
exit_status=0
@@ -131,7 +132,6 @@ function validate_frontend() {
else
echo "[TEST INFO]: ---------frontend test passed---------"
fi
}
function stop_docker() {