Skip to content

Commit fced0ac

Browse files
committed
release-test: include galaxy-tool-util
1 parent 56fa9f8 commit fced0ac

File tree

5 files changed

+9
-7
lines changed

5 files changed

+9
-7
lines changed

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ MODULE=cwltool
2727
PYSOURCES=$(wildcard ${MODULE}/**.py tests/*.py) setup.py
2828
DEVPKGS=diff_cover black pylint pep257 pydocstyle flake8 tox tox-pyenv \
2929
isort wheel autoflake flake8-bugbear pyupgrade bandit \
30-
-rtest-requirements.txt -rmypy_requirements.txt
30+
-rtest-requirements.txt -rmypy-requirements.txt
3131
DEBDEVPKGS=pep8 python-autopep8 pylint python-coverage pydocstyle sloccount \
3232
python-flake8 python-mock shellcheck
3333

cwltool.Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ RUN apk add --no-cache git gcc python3-dev libxml2-dev libxslt-dev libc-dev linu
55
WORKDIR /cwltool
66
COPY . .
77

8-
RUN pip install toml -rmypy_requirements.txt "$(grep ruamel requirements.txt)" \
8+
RUN pip install toml -rmypy-requirements.txt "$(grep ruamel requirements.txt)" \
99
"$(grep schema.salad requirements.txt)"
1010
# schema-salad is needed to be installed (this time as pure Python) for
1111
# cwltool + mypyc
File renamed without changes.

release-test.sh

+6-4
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ export LC_ALL=C
77

88
package=cwltool
99
module=cwltool
10+
extras="[deps]"
1011

1112
if [ "$GITHUB_ACTIONS" = "true" ]; then
1213
# We are running as a GH Action
@@ -41,8 +42,7 @@ then
4142
rm -f testenv1/lib/python-wheels/setuptools* \
4243
&& pip install --force-reinstall -U pip==${pipver} \
4344
&& pip install setuptools==${setuptoolsver} wheel
44-
pip install -rtest-requirements.txt
45-
pip install -e .
45+
pip install -rtest-requirements.txt ".${extras}"
4646
make test
4747
pip uninstall -y ${package} || true; pip uninstall -y ${package} || true; make install
4848
mkdir testenv1/not-${module}
@@ -67,7 +67,7 @@ rm -f lib/python-wheels/setuptools* \
6767
&& pip install --force-reinstall -U pip==${pipver} \
6868
&& pip install setuptools==${setuptoolsver} wheel
6969
# The following can fail if you haven't pushed your commits to ${repo}
70-
pip install -e "git+${repo}@${HEAD}#egg=${package}"
70+
pip install -e "git+${repo}@${HEAD}#egg=${package}${extras}"
7171
pushd src/${package}
7272
pip install -rtest-requirements.txt
7373
make dist
@@ -90,12 +90,14 @@ rm -f lib/python-wheels/setuptools* \
9090
&& pip install setuptools==${setuptoolsver} wheel
9191
package_tar=$(find . -name "${package}*tar.gz")
9292
pip install "-r${DIR}/test-requirements.txt"
93-
pip install "${package_tar}"
93+
pip install "${package_tar}${extras}"
9494
mkdir out
9595
tar --extract --directory=out -z -f ${package}*.tar.gz
9696
pushd out/${package}*
9797
make dist
9898
make test
99+
pip install "-r${DIR}/mypy-requirements.txt"
100+
make mypy
99101
pip uninstall -y ${package} || true; pip uninstall -y ${package} || true; make install
100102
mkdir ../not-${module}
101103
pushd ../not-${module}

tox.ini

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ deps =
5050
py3{6,7,8,9,10}-lint: black
5151
py3{6,7,8,9,10}-bandit: bandit
5252
py3{6,7,8,9,10}-bandit: importlib_metadata != 4.8.0
53-
py3{6,7,8,9,10}-mypy: -rmypy_requirements.txt
53+
py3{6,7,8,9,10}-mypy: -rmypy-requirements.txt
5454
py39-pydocstyle: pydocstyle
5555
py39-pydocstyle: diff-cover
5656
py39-lintreadme: twine

0 commit comments

Comments
 (0)