Sample batch job with multiple steps


would anyone have any sample regarding some multiple steps batch jobs?

Typically, we would like to automate some python processes. This would involve multiple steps:

  • clone a git repository
  • create a virtual environment
  • activate the virtual environment
  • restore the dependencies
  • run the process
  • collect the output files
  • deactivate the virtual environment
  • remove the virtual env
  • cleanup the folder

Thanks in advance,