Skip to content

Commit fc8e00a

Browse files
authored
Use mamba to setup test environments (#256)
* Try using mamba to speedup installing dependencies * Use mamba.bat command for windows
1 parent c8e3c74 commit fc8e00a

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

.github/workflows/test_pysteps.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,18 +37,22 @@ jobs:
3737
- name: Setup Miniconda
3838
uses: conda-incubator/setup-miniconda@v2.0.0
3939
with:
40-
auto-update-conda: true
4140
python-version: ${{ matrix.python-version }}
41+
mamba-version: "*"
42+
auto-update-conda: true
4243
channels: conda-forge
4344
channel-priority: flexible
4445
activate-environment: test-environment
4546

4647
- name: Install dependencies
4748
env:
4849
PACKAGES: ${{env.MINIMAL_DEPENDENCIES}} ${{env.OPTIONAL_DEPENDENCIES}} ${{env.TEST_DEPENDENCIES}}
49-
PYSTEPS_DATA_PATH: ${{github.workspace}}/pysteps_data
5050
run: |
51-
conda install --quiet ${{env.PACKAGES}}
51+
if [ "$RUNNER_OS" == "Windows" ]; then
52+
mamba.bat install --quiet ${{env.PACKAGES}}
53+
else
54+
mamba install --quiet ${{env.PACKAGES}}
55+
fi
5256
pip install -U cookiecutter
5357
5458
- name: Install pysteps for MacOS

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,14 @@ venv.bak/
8080
.spyderproject
8181
.spyproject
8282

83+
# VSCode
84+
.vscode
85+
8386
# Rope project settings
8487
.ropeproject
8588

8689
# mypy
8790
.mypy_cache/
91+
92+
# Mac OS Stuff
93+
.DS_Store

0 commit comments

Comments
 (0)