Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit901ae72

Browse files
authored
Merge pull requestmiykael#180 from mgxd/enh/manual-trigger
ENH: Allow GH Action to run with manual trigger
2 parents650ff45 +b574d85 commit901ae72

File tree

2 files changed

+23
-4
lines changed

2 files changed

+23
-4
lines changed

‎.github/workflows/testing.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ on:
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

1016
jobs:
@@ -14,7 +20,10 @@ jobs:
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.

‎generate.sh

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,16 @@
22

33
set -e
44

5+
NIPYPE_BRANCH=${1:-"master"}
6+
case$NIPYPE_BRANCHin
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
616
generate_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" \

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp