This guide provides a walkthrough for a Python based application and how to configure common CI tasks. If you’re new to Razorops please read our Tutorial and configuration guides first.
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.