We recommend you use docker based workflow for easier operations and immutable deployment.
Build and Test
In the below example we demonstrate a pipeline that executes
pip install and
pytest commands. These commands are executed inside a Docker container, downloaded at runtime from DockerHub.
tasks: - name: unit-test image: python:2.7 commands: - pip install -r requirements.txt - pytest
Please note that you can use any Docker image in your pipeline from any Docker registry. You can use the official python images, or your can bring your own.