diff --git a/jobs/templates/swh-tox.yaml b/jobs/templates/swh-tox.yaml --- a/jobs/templates/swh-tox.yaml +++ b/jobs/templates/swh-tox.yaml @@ -43,6 +43,10 @@ else python3 -m tox -e flake8 fi + - shell: | + if (python3 -m tox -a 2>/dev/null | grep -qx mypy ); then + python3 -m tox -e mypy + fi - shell: python3 -m tox --result-json tox-results.json -e $TOX_ENVIRONMENT -- -v publishers: