From b6e6adc5cbc332901fce8d42597c83a33e3ca2ea Mon Sep 17 00:00:00 2001 From: tligui_y Date: Thu, 28 Aug 2025 11:24:28 +0200 Subject: [PATCH] Update action.yml --- action.yml | 34 ++++++++++++++++------------------ 1 file changed, 16 insertions(+), 18 deletions(-) diff --git a/action.yml b/action.yml index aa40c71..33bf7fa 100644 --- a/action.yml +++ b/action.yml @@ -161,26 +161,24 @@ runs: echo "Exit Code: 0" >> $LOG_FILE fi ;; - - conda) - conda) - echo "3 - Setting up conda environment..." - curl -fsSL https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -o miniconda.sh - bash miniconda.sh -b -p $HOME/miniconda >> $LOG_FILE 2>&1 - export PATH="$HOME/miniconda/bin:$PATH" - source "$HOME/miniconda/etc/profile.d/conda.sh" + conda) + echo "3 - Setting up conda environment..." + curl -fsSL https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -o miniconda.sh + bash miniconda.sh -b -p $HOME/miniconda >> $LOG_FILE 2>&1 + export PATH="$HOME/miniconda/bin:$PATH" + source "$HOME/miniconda/etc/profile.d/conda.sh" - if [ -f "environment.yml" ]; then - conda env create -f environment.yml >> $LOG_FILE 2>&1 || exit 1 - conda activate slic || true - echo "📋 Conda environment details:" >> "$VERSIONS_FILE" - conda list >> "$VERSIONS_FILE" 2>&1 - else - echo "⚠️ No environment.yml found, skipping" >> "$LOG_FILE" - fi - echo "Exit Code: 0" >> $LOG_FILE - ;; + if [ -f "environment.yml" ]; then + conda env create -f environment.yml >> $LOG_FILE 2>&1 || exit 1 + conda activate slic || true + echo "📋 Conda environment details:" >> "$VERSIONS_FILE" + conda list >> "$VERSIONS_FILE" 2>&1 + else + echo "⚠️ No environment.yml found, skipping" >> "$LOG_FILE" + fi + echo "Exit Code: 0" >> $LOG_FILE + ;; esac - name: Install CI test tooling