File tree Expand file tree Collapse file tree 2 files changed +23
-4
lines changed Expand file tree Collapse file tree 2 files changed +23
-4
lines changed Original file line number Diff line number Diff line change 55 branches : [ master ]
66 pull_request :
77 branches : [ master ]
8+ workflow_dispatch :
9+ inputs :
10+ nipype_branch :
11+ description : ' Build specific Nipype branch'
12+ required : true
13+ default : ' master'
814
915
1016jobs :
1420 steps :
1521 - uses : actions/checkout@v2
1622 - name : generate the Dockerfile from generate.sh
17- run : bash generate.sh
23+ run : |
24+ BRANCH=${{ github.event.inputs.nipype_branch }}
25+ BRANCH=${BRANCH:-"master"}
26+ bash generate.sh $BRANCH
1827 # In this step, this action saves a list of existing images,
1928 # the cache is created without them in the post run.
2029 # It also restores the cache if it exists.
Original file line number Diff line number Diff line change 22
33set -e
44
5+ NIPYPE_BRANCH=${1:- " master" }
6+ case $NIPYPE_BRANCH in
7+ master)
8+ NIPYPE_URL=" https://github.com/nipy/nipype/tarball/master"
9+ ;;
10+ * )
11+ NIPYPE_URL=" git+https://github.com/nipy/nipype.git@${NIPYPE_BRANCH} "
12+ ;;
13+ esac
14+
515# Generate Dockerfile
616generate_docker () {
717 docker run --rm kaczmarj/neurodocker:master generate docker \
@@ -17,7 +27,7 @@ generate_docker() {
1727 --miniconda \
1828 conda_install=" python=3.8 pytest jupyter jupyterlab jupyter_contrib_nbextensions
1929 traits pandas matplotlib scikit-learn scikit-image seaborn nbformat nb_conda" \
20- pip_install=" https://github.com/nipy/nipype/tarball/master
30+ pip_install=" $NIPYPE_URL
2131 pybids==0.13.1
2232 nilearn datalad[full] nipy duecredit nbval niflow-nipype1-workflows" \
2333 create_env=" neuro" \
@@ -54,9 +64,9 @@ generate_singularity() {
5464 --user=neuro \
5565 --workdir /home/neuro \
5666 --miniconda \
57- conda_install=" python=3.7 pytest jupyter jupyterlab jupyter_contrib_nbextensions
67+ conda_install=" python=3.8 pytest jupyter jupyterlab jupyter_contrib_nbextensions
5868 traits pandas matplotlib scikit-learn scikit-image seaborn nbformat nb_conda" \
59- pip_install=" https://github.com/nipy/nipype/tarball/master
69+ pip_install=" $NIPYPE_URL
6070 pybids==0.13.1
6171 nilearn datalad[full] nipy duecredit nbval niflow-nipype1-workflows" \
6272 create_env=" neuro" \
You can’t perform that action at this time.
0 commit comments