test script

This commit is contained in:
Aneta Tlałka 2023-10-24 18:29:49 +02:00
parent 6446b71528
commit 5e2b9180e6
2 changed files with 11 additions and 4 deletions

5
Jenkinsfile vendored
View File

@ -1,6 +1,6 @@
pipeline {
agent {
docker { image 'node:18.18.2-alpine3.18' }
docker { image 'alpine/flake8:3.5.0' }
}
stages {
@ -10,9 +10,8 @@ pipeline {
}
}
stage('Test') {
when { expression { return fileExists ('CenaMieszkaniaDesign.py') } }
steps {
echo "file exists"
sh 'flake check_flat_price.py'
}
}
stage('Deploy') {

8
check_flat_price.py Normal file
View File

@ -0,0 +1,8 @@
import pandas as pd
import numpy as np
ceny = pd.read_csv('expected.tsv', sep='\t', header=None)
for cena in ceny:
if cena < 0:
print("cena ujemna, sprawdz cene")