pipeline { agent { docker { image 'python:slim' } } stages { stage('install_dep') { steps { sh 'pip install -r requirements/dev.txt && cp .env.sample .env && python manage.py migrate' } } stage('tests') { steps { sh 'pytest -v' } } } }