mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
ci: force tox install during lint tasks
This commit is contained in:
parent
031c641b77
commit
1af88b0c55
1 changed files with 11 additions and 0 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Reference in a new issue