updated test stage
willemjan/glucose-dashboard/pipeline/head There was a failure building this commit
willemjan/glucose-dashboard/pipeline/head There was a failure building this commit
This commit is contained in:
Vendored
+2
-4
@@ -30,14 +30,12 @@ pipeline {
|
|||||||
stage('Test') {
|
stage('Test') {
|
||||||
steps {
|
steps {
|
||||||
sh '''
|
sh '''
|
||||||
python -m venv .venv
|
pip install --break-system-packages -q -r requirements.txt
|
||||||
. .venv/bin/activate
|
|
||||||
pip install -q -r requirements.txt
|
|
||||||
pytest -q --junitxml=report.xml
|
pytest -q --junitxml=report.xml
|
||||||
'''
|
'''
|
||||||
}
|
}
|
||||||
post {
|
post {
|
||||||
always { junit 'report.xml' }
|
always { junit allowEmptyResults: true, testResults: 'report.xml' }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user