Skip to content

Commit 3803be6

Browse files
committed
bin dir of env is not added to PATH so use absolute paths
1 parent 393c143 commit 3803be6

File tree

1 file changed

+3
-11
lines changed

1 file changed

+3
-11
lines changed

.github/workflows/recipes.yml

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,11 @@ jobs:
1818
path: ~/conda_pkgs_dir
1919
key: ${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-${{ hashFiles('data/recipe_example.yml') }}
2020
- uses: goanpeca/setup-miniconda@v1
21-
with:
22-
activate-environment: esmvaltool
2321
- name: Install esmvaltool
2422
run: conda install -y -c esmvalgroup -c conda-forge esmvaltool-python
25-
- name: Debug
26-
run: |
27-
echo $CONDA
28-
echo $PATH
29-
ls $CONDA/envs/test/bin
30-
which esmvaltool
3123
- name: Setup config
3224
run: |
33-
esmvaltool config get_config_user
25+
$CONDA/envs/test/bin/esmvaltool config get_config_user
3426
patch ~/.esmvaltool/config-user.yml << EOF
3527
44c44
3628
< #rootpath:
@@ -51,6 +43,6 @@ jobs:
5143
key: ${{ runner.os }}-datasets-${{ env.CACHE_NUMBER }}-${{ hashFiles('data/dataset.urls') }}
5244
- name: Download dataset files for data/recipe_example.yml
5345
run: |
54-
head -4 data/dataset.urls |grep -v '#' | wget --input-file - --no-clobber --directory-prefix $HOME/default_inputpath/
46+
head -4 data/dataset.urls | grep -v '#' | wget --input-file - --no-clobber --directory-prefix $HOME/default_inputpath/
5547
- name: Run data/recipe_example.yml
56-
run: esmvaltool run $PWD/data/recipe_example.yml
48+
run: $CONDA/envs/test/bin/esmvaltool run $PWD/data/recipe_example.yml

0 commit comments

Comments
 (0)