Skip to content

Commit 5329ae8

Browse files
committed
FIX: update gh workflow
1 parent 005081c commit 5329ae8

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.github/workflows/pythonpackage.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ jobs:
5555
source /tmp/install_sdist/bin/activate
5656
python -m pip install "setuptools ~= 42.0" "pip>=10.0.1"
5757
python -m pip install dist/templateflow*.tar.gz
58-
INSTALLED_VERSION=$(python -c 'import templateflow as tf; print(tf.__version__, end="")')
58+
INSTALLED_VERSION=$(python -c 'import templateflow as tf; print(tf.__version__, end="")' | tail -1)
5959
echo "VERSION: \"${THISVERSION}\""
6060
echo "INSTALLED: \"${INSTALLED_VERSION}\""
6161
test "${INSTALLED_VERSION}" = "${THISVERSION}"
@@ -74,6 +74,7 @@ jobs:
7474
rm -rf ${TEMPLATEFLOW_HOME}/tpl-MNI152NLin2009cAsym
7575
source /tmp/install_sdist/bin/activate
7676
python -m pip install dist/templateflow*.tar.gz
77+
python -c "import templateflow; templateflow.update(overwrite=False)"
7778
find ${TEMPLATEFLOW_HOME} >> /tmp/.sdist-install-2.txt
7879
diff /tmp/.sdist-install.txt /tmp/.sdist-install-2.txt
7980
exit $?
@@ -86,7 +87,7 @@ jobs:
8687
source /tmp/install_wheel/bin/activate
8788
python -m pip install "setuptools ~= 42.0" "pip>=10.0.1"
8889
python -m pip install dist/templateflow*.whl
89-
INSTALLED_VERSION=$(python -c 'import templateflow as tf; print(tf.__version__, end="")')
90+
INSTALLED_VERSION=$(python -c 'import templateflow as tf; print(tf.__version__, end="")' | tail -1)
9091
echo "INSTALLED: \"${INSTALLED_VERSION}\""
9192
test "${INSTALLED_VERSION}" = "${THISVERSION}"
9293
@@ -120,7 +121,7 @@ jobs:
120121
python -m pip install "setuptools ~= 42.0" wheel "setuptools_scm[toml] >= 3.4" \
121122
setuptools_scm_git_archive "pip>=10.0.1"
122123
python setup.py install
123-
INSTALLED_VERSION=$(python -c 'import templateflow as tf; print(tf.__version__, end="")')
124+
INSTALLED_VERSION=$(python -c 'import templateflow as tf; print(tf.__version__, end="")' | tail -1)
124125
echo "INSTALLED: \"${INSTALLED_VERSION}\""
125126
test "${INSTALLED_VERSION}" = "${THISVERSION}"
126127
@@ -138,6 +139,7 @@ jobs:
138139
rm -rf ${TEMPLATEFLOW_HOME}/tpl-MNI152NLin2009cAsym
139140
source /tmp/setup_install/bin/activate
140141
python setup.py install
142+
python -c "import templateflow; templateflow.update(overwrite=False)"
141143
find ${TEMPLATEFLOW_HOME} >> /tmp/.setup-install-2.txt
142144
diff /tmp/.setup-install.txt /tmp/.setup-install-2.txt
143145
exit $?
@@ -151,7 +153,7 @@ jobs:
151153
python -m pip install "setuptools ~= 42.0" wheel "setuptools_scm[toml] >= 3.4" \
152154
setuptools_scm_git_archive "pip>=10.0.1"
153155
python setup.py develop
154-
INSTALLED_VERSION=$(python -c 'import templateflow as tf; print(tf.__version__, end="")')
156+
INSTALLED_VERSION=$(python -c 'import templateflow as tf; print(tf.__version__, end="")' | tail -1)
155157
echo "INSTALLED: \"${INSTALLED_VERSION}\""
156158
test "${INSTALLED_VERSION}" = "${THISVERSION}"
157159
@@ -170,6 +172,7 @@ jobs:
170172
rm -rf ${TEMPLATEFLOW_HOME}/tpl-MNI152NLin2009cAsym
171173
source /tmp/setup_develop/bin/activate
172174
python setup.py develop
175+
python -c "import templateflow; templateflow.update(overwrite=False)"
173176
find ${TEMPLATEFLOW_HOME} >> /tmp/.setup-develop-2.txt
174177
diff /tmp/.setup-develop.txt /tmp/.setup-develop-2.txt
175178
exit $?

0 commit comments

Comments
 (0)