test script
This commit is contained in:
parent
6446b71528
commit
5e2b9180e6
7
Jenkinsfile
vendored
7
Jenkinsfile
vendored
@ -1,6 +1,6 @@
|
||||
pipeline {
|
||||
agent {
|
||||
docker { image 'node:18.18.2-alpine3.18' }
|
||||
docker { image 'alpine/flake8:3.5.0' }
|
||||
}
|
||||
|
||||
stages {
|
||||
@ -10,10 +10,9 @@ pipeline {
|
||||
}
|
||||
}
|
||||
stage('Test') {
|
||||
when { expression { return fileExists ('CenaMieszkaniaDesign.py') } }
|
||||
steps {
|
||||
echo "file exists"
|
||||
}
|
||||
sh 'flake check_flat_price.py'
|
||||
}
|
||||
}
|
||||
stage('Deploy') {
|
||||
steps {
|
||||
|
8
check_flat_price.py
Normal file
8
check_flat_price.py
Normal 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")
|
Loading…
Reference in New Issue
Block a user