diff --git a/Jenkinsfile b/Jenkinsfile index b2144be..f286028 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -14,13 +14,15 @@ pipeline { stage('Test python app') { steps { script { - sh ''' - python3 -m venv env - env/bin/pip install -r requirements.txt pytest - env/bin/pytest . --junit-xml=pytest_junit.xml - ''' + dir('api') { + sh ''' + python3 -m venv env + env/bin/pip install -r requirements.txt pytest + env/bin/pytest . --junit-xml=pytest_junit.xml + ''' } } + } post { always { junit testResults: '**/*pytest_junit.xml'