File tree 1 file changed +11
-9
lines changed
1 file changed +11
-9
lines changed Original file line number Diff line number Diff line change @@ -48,19 +48,21 @@ jobs:
48
48
- uses : actions/checkout@v4
49
49
with :
50
50
fetch-depth : 0
51
+
52
+ - name : Prepare environment file for Mamba installation
53
+ env :
54
+ PYTHON_VERSION : ${{ matrix.python-version }}
55
+ run : |
56
+ # setup correct python version
57
+ sed -i -e "s/- python=.*/- python=$PYTHON_VERSION/g" environment.yml
51
58
52
59
- name : Setup Mamba
53
60
uses : mamba-org/setup-micromamba@v1
54
61
with :
55
- # the create command looks like this:
56
- # `micromamba create -n test-env -c conda-forge python=3.11 lstchain`
57
- environment-name : test-env
58
- condarc : |
59
- channels:
60
- - conda-forge
61
- create-args : >-
62
- python=${{ matrix.python-version }}
63
- lstchain
62
+ environment-file : environment.yml
63
+ cache-environment : true
64
+ post-cleanup : ' all'
65
+
64
66
65
67
- name : Build the package
66
68
run : |
You can’t perform that action at this time.
0 commit comments