diff --git a/templates/gitlab-ci-python.yml b/templates/gitlab-ci-python.yml index 265b8d1a8882d3eaf3cd57fe1dac2cd6be312abe..b3568f3cc15bccd75bf9ccc277dad82eb78a623d 100644 --- a/templates/gitlab-ci-python.yml +++ b/templates/gitlab-ci-python.yml @@ -90,7 +90,7 @@ variables: } function install_requirements() { - if [[ -f "pyproject.toml" ]]; then + if [[ -f "pyproject.toml" ]] && [[ "${PYTHON_POETRY_DISABLED}" != "true" ]]; then if [[ ! -f "poetry.lock" ]]; then log_error "Poetry detected but \\e[33;1mpoetry.lock\\e[0m file not found: you shall commit it with your project files" exit 1