@@ -15,41 +15,24 @@ jobs:
15
15
defaults :
16
16
run :
17
17
shell : bash -l {0}
18
- env :
19
- RETICULATE_PYTHON : /usr/share/miniconda3/envs/www-main/bin/python
20
18
steps :
21
19
- uses : actions/checkout@v3
22
20
with :
23
- # submodules: true # Fetch Hugo themes (true OR recursive)
24
21
fetch-depth : 3
25
- - uses : conda-incubator/setup-miniconda@v2
22
+ - uses : mamba-org/provision-with-micromamba@v15
26
23
with :
27
- python-version : 3.9
28
- activate-environment : www-main
29
- miniforge-variant : Mambaforge
30
- miniforge-version : latest
31
- use-mamba : true
32
- use-only-tar-bz2 : true # IMPORTANT: This needs to be set for caching to work properly!
24
+ environment-file : environment.yml
25
+ micromamba-version : latest
33
26
- name : Get Date
34
27
id : get-date
35
28
run : echo "name=today::$(/bin/date -u '+%Y%m%d')" >> $GITHUB_OUTPUT
36
29
shell : bash
37
- - name : Cache Conda env
38
- uses : actions/cache@v3
39
- with :
40
- path : ${{ env.CONDA }}/envs
41
- key : conda-${{ runner.os }}--${{ runner.arch }}--${{ steps.get-date.outputs.today }}-${{ hashFiles('environment.yml') }}-${{ env.CACHE_NUMBER }}
42
- env :
43
- # Increase this value to reset cache if etc/example-environment.yml has not changed
44
- CACHE_NUMBER : 0
45
- id : cache
46
- - name : Update environment
47
- run : mamba env update -n www-main -f environment.yml
48
- if : steps.cache.outputs.cache-hit != 'true'
49
- - name : Conda info
30
+ - name : Create environment
31
+ run : micromamba env create -n www-main-micromamba -f environment.yml
32
+ - name : micromamba info
50
33
run : |
51
- conda info
52
- conda list
34
+ micromamba info
35
+ micromamba list
53
36
- name : Install R dependencies
54
37
env :
55
38
GITHUB_PAT : ${{ secrets.GITHUB_TOKEN }}
0 commit comments