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
|
# 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"
|
||||||
|
|
Loading…
Add table
Reference in a new issue