File tree Expand file tree Collapse file tree 2 files changed +7
-11
lines changed
actions/create-conda-envs Expand file tree Collapse file tree 2 files changed +7
-11
lines changed Original file line number Diff line number Diff line change @@ -29,14 +29,10 @@ runs:
29
29
fi
30
30
echo "CYLC_RELEASE=$CYLC_RELEASE" >> "${GITHUB_ENV}"
31
31
32
- - shell : bash
33
- working-directory : ${{ inputs.working_directory }}
34
- run : |
35
- # use mamba (much faster)
36
- # use this when released: https://github.com/mamba-org/setup-mamba
37
- conda install -n base -c conda-forge -y mamba
32
+ - name : setup micromamba
33
+ uses : mamba-org/setup-micromamba@v2
38
34
39
- - shell : bash
35
+ - shell : bash -el {0}
40
36
working-directory : ${{ inputs.working_directory }}
41
37
run : |
42
38
for env_file in $(echo src/reference/environments/envs/*.yml); do
50
46
"${env_file}" \
51
47
> "${new_env_file}"
52
48
# create the env
53
- conda run -n base mamba env create -f "${new_env_file}" -n cylc-env
49
+ micromamba env create -f "${new_env_file}" -n cylc-env
54
50
# test the env
55
- conda run -n cylc-env cylc version
56
- conda env remove -n cylc-env
51
+ micromamba run -n cylc-env cylc version
52
+ micromamba env remove -n cylc-env
57
53
done
Original file line number Diff line number Diff line change 24
24
timeout-minutes : 30
25
25
strategy :
26
26
matrix :
27
- python : [3.7, 3. 8, 3.9]
27
+ python : [3.8, 3.9]
28
28
steps :
29
29
- name : checkout cylc-doc
30
30
uses : actions/checkout@v4
You can’t perform that action at this time.
0 commit comments