diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000..7806260 --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,39 @@ +# Python CircleCI 2.0 configuration file +# +# Check https://circleci.com/docs/2.0/language-python/ for more details +# +version: 2 +jobs: + build: + docker: + - image: circleci/python:3.7 + + working_directory: ~/repo + + environment: + PIPENV_VENV_IN_PROJECT: true + + steps: + - checkout + + # Download and cache dependencies + - restore_cache: + keys: + - v1-dependencies-{{ checksum "Pipfile.lock" }}-{{ .Environment.CACHE_VERSION }} + + - run: + name: install dependencies + command: | + sudo pip install pipenv + pipenv install -d + + - save_cache: + paths: + - ./.venv + key: v1-dependencies-{{ checksum "Pipfile.lock" }}-{{ .Environment.CACHE_VERSION }} + + # run tests! + - run: + name: run tests + command: | + make test diff --git a/README.md b/README.md index edc8331..8bfae6e 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # pilgram +[![CircleCI](https://circleci.com/gh/akiomik/pilgram.svg?style=svg)](https://circleci.com/gh/akiomik/pilgram) + A python library for instagram filters. ![screenshot](screenshot.png)