Update action.yml
This commit is contained in:
+6
-5
@@ -164,13 +164,14 @@ runs:
|
||||
|
||||
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"
|
||||
|
||||
curl -fsSL https://github.com/conda-forge/miniforge/releases/latest/download/Mambaforge-Linux-x86_64.sh -o mambaforge.sh
|
||||
bash mambaforge.sh -b -p $HOME/mambaforge >> $LOG_FILE 2>&1
|
||||
export PATH="$HOME/mambaforge/bin:$PATH"
|
||||
source "$HOME/mambaforge/etc/profile.d/conda.sh"
|
||||
|
||||
if [ -f "environment.yml" ]; then
|
||||
conda env create -f environment.yml >> $LOG_FILE 2>&1 || exit 1
|
||||
mamba 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
|
||||
|
||||
Reference in New Issue
Block a user