version: 2 jobs: build: docker: - image: circleci/python:3.6.1 steps: - checkout - restore_cache: keys: - deps-{{ checksum "requirements.txt" }} - run: name: install dependencies command: | python3 -m venv venv . venv/bin/activate pip install -r requirements.txt - save_cache: paths: - ./venv key: deps-{{ checksum "requirements.txt" }} - run: name: Run Tests command: | . venv/bin/activate ansible-lint . **/*.yml -c test/lint/.ansible-lint