version: 2 jobs: build: docker: - image: circleci/python:3.6.6 working_directory: ~/alpe-skytef-gw branches: only: - develop - /feature-.*/ steps: - checkout - restore_cache: keys: - alpe-skytef-gw-{{ checksum "Pipfile.lock" }} - alpe-skytef-gw- - run: name: Install dependencies command: pipenv sync --dev - run: name: Run Tests command: pipenv run pytest - save_cache: key: alpe-skytef-gw-{{ checksum "Pipfile.lock" }} paths: - ~/.local - ~/.cache workflows: version: 2 build-deploy: jobs: - build