ci: add pre-commit checks (#78863)
gitea/passerelle-grandlyon-iodas/pipeline/head This commit looks good Details

This commit is contained in:
Frédéric Péters 2023-06-22 08:47:12 +02:00
parent 13190d4800
commit e0899c9f5d
2 changed files with 19 additions and 0 deletions

9
Jenkinsfile vendored
View File

@ -2,7 +2,16 @@
pipeline {
agent any
options {
disableConcurrentBuilds()
timeout(time: 30, unit: 'MINUTES')
}
stages {
stage('Unit Tests') {
steps {
sh 'tox -rv'
}
}
stage('Packaging') {
steps {
script {

10
tox.ini Normal file
View File

@ -0,0 +1,10 @@
[tox]
envlist = py3-codestyle
toxworkdir = {env:TMPDIR:/tmp}/tox-{env:USER}/passerelle-grandlyon-iodas/{env:BRANCH_NAME:}
[testenv]
usedevelop = True
deps =
codestyle: pre-commit
commands =
codestyle: pre-commit run --all-files --show-diff-on-failure