@@ -15,10 +15,12 @@ jobs:
1515 steps :
1616 - uses : actions/checkout@v3
1717 - name : Set up Python 3.10
18- uses : conda-incubator /setup-miniconda@v3
18+ uses : mamba-org /setup-micromamba@v2
1919 with :
20- auto-update-conda : true
21- python-version : ' 3.10'
20+ environment-file : environment.yml
21+ cache-environment : true
22+ init-shell : bash
23+ post-cleanup : ' all'
2224 - name : Install ESA SNAP
2325 run : |
2426 wget -nv https://download.esa.int/step/snap/12.0/installers/esa-snap_all_linux-12.0.0.sh
3032 echo "PROJ_DATA=$CONDA/share/proj" >> $GITHUB_ENV
3133 - name : Install python packages
3234 run : |
33- conda install -y python=3.10 flake8
34- conda env update --file environment.yml --name base
35- conda env update --file environment-dev.yml --name base
35+ mamba install -y python=3.10 flake8
36+ mamba env update --file environment-dev.yml -n base
3637 - name : Lint with flake8
3738 run : |
3839 flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
@@ -58,10 +59,12 @@ jobs:
5859 shell : cmd /C CALL {0}
5960 steps :
6061 - uses : actions/checkout@v3
61- - uses : conda-incubator /setup-miniconda@v3
62+ - uses : mamba-org /setup-micromamba@v2
6263 with :
63- auto-update-conda : true
64- python-version : ' 3.12'
64+ environment-file : environment.yml
65+ cache-environment : true
66+ init-shell : cmd.exe
67+ post-cleanup : ' all'
6568 - uses : nyurik/action-setup-postgis@v2
6669 with :
6770 cached-dir : C:\downloads
7679 echo PROJ_DATA=%CONDA%\share\proj>> %GITHUB_ENV%
7780 - name : Install python packages
7881 run : |
79- conda env update --file environment.yml --name base
80- conda env update --file environment-dev.yml --name base
82+ mamba env update --file environment-dev.yml -n base
8183 - name : Install pyroSAR
8284 run : |
8385 pip install .
0 commit comments