File tree 2 files changed +13
-3
lines changed
2 files changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -82,18 +82,28 @@ jobs:
82
82
shell : bash -l {0}
83
83
steps :
84
84
- uses : actions/checkout@v2
85
+ - name : Cache conda
86
+ uses : actions/cache@v2
87
+ env :
88
+ # Increase this value to reset cache if etc/example-environment.yml has not changed
89
+ CACHE_NUMBER : 0
90
+ with :
91
+ path : ~/conda_pkgs_dir
92
+ key :
93
+ ${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-${{
94
+ hashFiles('etc/example-environment.yml') }}
85
95
- uses : conda-incubator/setup-miniconda@v2
86
96
with :
87
97
# Create env with dev packages
88
98
auto-update-conda : true
89
99
python-version : 3.9
100
+ miniforge-variant : Mambaforge
90
101
environment-file : dev-environment.yml
91
- # Activate scyjava -dev environment
102
+ # Activate pyimagej -dev environment
92
103
activate-environment : pyimagej-dev
93
104
auto-activate-base : false
94
105
# Use mamba for faster setup
95
106
use-mamba : true
96
- mamba-version : " *"
97
107
- name : Test pyimagej
98
108
run : |
99
109
bin/test.sh tests --cov-report=xml --cov=.
Original file line number Diff line number Diff line change 10
10
- id : flake8
11
11
additional_dependencies : [flake8-typing-imports==1.7.0]
12
12
- repo : https://github.com/PyCQA/isort
13
- rev : 5.10.1
13
+ rev : 5.12.0
14
14
hooks :
15
15
- id : isort
16
16
- repo : https://github.com/psf/black
You can’t perform that action at this time.
0 commit comments