ci: force tox install during lint tasks

This commit is contained in:
Alexandre Aubin 2023-05-15 19:04:32 +02:00
parent 031c641b77
commit 1af88b0c55

View file

@ -1,3 +1,6 @@
.install_tox: &install_tox
- pip3 install -U tox --break-system-packages
######################################## ########################################
# LINTER # LINTER
######################################## ########################################
@ -8,6 +11,8 @@ lint39:
image: "before-install" image: "before-install"
needs: [] needs: []
allow_failure: true allow_failure: true
before_script:
- *install_tox
script: script:
- tox -e py39-lint - tox -e py39-lint
@ -15,6 +20,8 @@ invalidcode39:
stage: lint stage: lint
image: "before-install" image: "before-install"
needs: [] needs: []
before_script:
- *install_tox
script: script:
- tox -e py39-invalidcode - tox -e py39-invalidcode
@ -22,6 +29,8 @@ mypy:
stage: lint stage: lint
image: "before-install" image: "before-install"
needs: [] needs: []
before_script:
- *install_tox
script: script:
- tox -e py39-mypy - tox -e py39-mypy
@ -29,6 +38,8 @@ black:
stage: lint stage: lint
image: "before-install" image: "before-install"
needs: [] needs: []
before_script:
- *install_tox
before_script: before_script:
- apt-get update -y && apt-get install git hub -y - apt-get update -y && apt-get install git hub -y
- git config --global user.email "yunohost@yunohost.org" - git config --global user.email "yunohost@yunohost.org"