File tree Expand file tree Collapse file tree 1 file changed +0
-40
lines changed
Expand file tree Collapse file tree 1 file changed +0
-40
lines changed Original file line number Diff line number Diff line change 180180 echo ::endgroup::
181181fi
182182
183- # Configure conda environment, if one is needed.
184- if [ -f environment.yml ]; then
185- echo ::group::" = Conda setup ="
186-
187- condaDir=$HOME /miniconda
188- condaSh=$condaDir /etc/profile.d/conda.sh
189- if [ ! -f " $condaSh " ]; then
190- echo
191- echo " == Installing conda =="
192- python_version=${python -V}
193- python_version=${python_version: 7: 3} # get python version in the format like '2.7'
194- if [ " ${python_version} " = " 2.7" ]; then
195- wget https://repo.continuum.io/miniconda/Miniconda2-latest-Linux-x86_64.sh -O miniconda.sh
196- else
197- wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
198- fi
199- rm -rf " $condaDir "
200- bash miniconda.sh -b -p " $condaDir "
201- checkSuccess $?
202- fi
203-
204- echo
205- echo " == Updating conda =="
206- . " $condaSh " &&
207- conda config --set always_yes yes --set changeps1 no &&
208- conda update -q conda &&
209- conda info -a
210- checkSuccess $?
211-
212- echo
213- echo " == Configuring environment =="
214- condaEnv=ci-scijava
215- test -d " $condaDir /envs/$condaEnv " && condaAction=update || condaAction=create
216- conda env " $condaAction " -n " $condaEnv " -f environment.yml &&
217- conda activate " $condaEnv "
218- checkSuccess $?
219-
220- echo ::endgroup::
221- fi
222-
223183# Execute Jupyter notebooks.
224184if which jupyter > /dev/null 2>&1 ; then
225185 echo ::group::" = Jupyter notebooks ="
You can’t perform that action at this time.
0 commit comments