Skip to content

Commit 013c260

Browse files
committed
Use Mambaforge and cache downloads
Adapted from the same fix in the PyImageJ repository: imagej/pyimagej@09a188c.
1 parent efb4982 commit 013c260

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

.github/workflows/build.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,18 +84,27 @@ jobs:
8484
shell: bash -l {0}
8585
steps:
8686
- uses: actions/checkout@v2
87+
- name: Cache conda
88+
uses: actions/cache@v2
89+
env:
90+
# Increase this value to reset cache if dev-environment.yml has not changed
91+
CACHE_NUMBER: 0
92+
with:
93+
path: ~/conda_pkgs_dir
94+
key:
95+
${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-${{ hashFiles('dev-environment.yml') }}
8796
- uses: conda-incubator/setup-miniconda@v2
8897
with:
8998
# Create env with dev packages
9099
auto-update-conda: true
91100
python-version: 3.9
101+
miniforge-variant: Mambaforge
92102
environment-file: dev-environment.yml
93103
# Activate scyjava-dev environment
94104
activate-environment: scyjava-dev
95105
auto-activate-base: false
96106
# Use mamba for faster setup
97107
use-mamba: true
98-
mamba-version: "*"
99108
- name: Test scyjava
100109
run: |
101110
bin/test.sh --cov-report=xml --cov=.

0 commit comments

Comments
 (0)