Skip to content

Commit

Permalink
Use mamba to setup test environments (#256)
Browse files Browse the repository at this point in the history
* Try using mamba to speedup installing dependencies

* Use mamba.bat command for windows
  • Loading branch information
dnerini committed Jan 15, 2022
1 parent c8e3c74 commit fc8e00a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/test_pysteps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,18 +37,22 @@ jobs:
- name: Setup Miniconda
uses: conda-incubator/setup-miniconda@v2.0.0
with:
auto-update-conda: true
python-version: ${{ matrix.python-version }}
mamba-version: "*"
auto-update-conda: true
channels: conda-forge
channel-priority: flexible
activate-environment: test-environment

- name: Install dependencies
env:
PACKAGES: ${{env.MINIMAL_DEPENDENCIES}} ${{env.OPTIONAL_DEPENDENCIES}} ${{env.TEST_DEPENDENCIES}}
PYSTEPS_DATA_PATH: ${{github.workspace}}/pysteps_data
run: |
conda install --quiet ${{env.PACKAGES}}
if [ "$RUNNER_OS" == "Windows" ]; then
mamba.bat install --quiet ${{env.PACKAGES}}
else
mamba install --quiet ${{env.PACKAGES}}
fi
pip install -U cookiecutter
- name: Install pysteps for MacOS
Expand Down
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,14 @@ venv.bak/
.spyderproject
.spyproject

# VSCode
.vscode

# Rope project settings
.ropeproject

# mypy
.mypy_cache/

# Mac OS Stuff
.DS_Store

0 comments on commit fc8e00a

Please sign in to comment.