Skip to content

Commit

Permalink
Fixed missing env_status
Browse files Browse the repository at this point in the history
  • Loading branch information
martinlschumann committed Jan 8, 2025
1 parent dda6d26 commit e5151ef
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/test_linear_ensemble.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ jobs:
run: |
# $CONDA is an environment variable pointing to the root of the miniconda directory
echo $CONDA/bin >> $GITHUB_PATH
- name: Install Miniconda
uses: conda-incubator/setup-miniconda@v3
with:
Expand All @@ -26,10 +27,15 @@ jobs:
- name: Check if environment exists
id: check_env
run: |
conda env list | grep -q "autogluon-conda" || echo "missing"
if conda env list | grep -q "autogluon-conda"; then
echo "env_status=exists" >> $GITHUB_ENV
else
echo "env_status=missing" >> $GITHUB_ENV
fi
shell: bash

- name: Create environment if missing
if: steps.check_env.outputs.stdout == 'missing'
if: env.env_status == 'missing'
run: |
conda create -n autogluon-conda python=3.10 -y
Expand Down

0 comments on commit e5151ef

Please sign in to comment.