Skip to content

Commit

Permalink
added venv creation to test step
Browse files Browse the repository at this point in the history
  • Loading branch information
mattisafur committed Jul 27, 2024
1 parent d11fcc2 commit 90dc8fc
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,21 @@ pipeline {
}
stage('Test') {
steps {
// create and activate venv
sh '''
python3 -m venv .venv
source .venv/Scripts/activate
pip install -r requirements.txt
'''

// run end to end test
sh 'python3 e2e.py'

// deactivate and remove venv
sh '''
deactivate
rm -r .venv
'''
}
}
stage('Finalize') {
Expand Down

0 comments on commit 90dc8fc

Please sign in to comment.