From 1af88b0c55d5d3cadf8e758496254a3143abdf41 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Mon, 15 May 2023 19:04:32 +0200 Subject: [PATCH] ci: force tox install during lint tasks --- .gitlab/ci/lint.gitlab-ci.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.gitlab/ci/lint.gitlab-ci.yml b/.gitlab/ci/lint.gitlab-ci.yml index 7a8fbf1fb..6e33af408 100644 --- a/.gitlab/ci/lint.gitlab-ci.yml +++ b/.gitlab/ci/lint.gitlab-ci.yml @@ -1,3 +1,6 @@ +.install_tox: &install_tox + - pip3 install -U tox --break-system-packages + ######################################## # LINTER ######################################## @@ -8,6 +11,8 @@ lint39: image: "before-install" needs: [] allow_failure: true + before_script: + - *install_tox script: - tox -e py39-lint @@ -15,6 +20,8 @@ invalidcode39: stage: lint image: "before-install" needs: [] + before_script: + - *install_tox script: - tox -e py39-invalidcode @@ -22,6 +29,8 @@ mypy: stage: lint image: "before-install" needs: [] + before_script: + - *install_tox script: - tox -e py39-mypy @@ -29,6 +38,8 @@ black: stage: lint image: "before-install" needs: [] + before_script: + - *install_tox before_script: - apt-get update -y && apt-get install git hub -y - git config --global user.email "yunohost@yunohost.org"