added simple ci config
This commit is contained in:
parent
bff1aeba6a
commit
a8d74f5d8c
|
@ -0,0 +1,30 @@
|
|||
version: 2
|
||||
jobs:
|
||||
build:
|
||||
docker:
|
||||
- image: circleci/python:3.6.7
|
||||
working_directory: ~/repo
|
||||
steps:
|
||||
- checkout
|
||||
|
||||
- restore_cache:
|
||||
keys:
|
||||
- v1-dependencies-{{ checksum "Pipfile.lock" }}
|
||||
|
||||
- run:
|
||||
name: install dependencies
|
||||
command: |
|
||||
pip install pipenv
|
||||
export PIPENV_VENV_IN_PROJECT=1
|
||||
pipenv install
|
||||
|
||||
- save_cache:
|
||||
paths:
|
||||
- ./venv
|
||||
key: v1-dependencies-{{ checksum "Pipfile.lock" }}
|
||||
|
||||
- run:
|
||||
name: run tests
|
||||
command: |
|
||||
export PIPENV_VENV_IN_PROJECT=1
|
||||
pipenv run pytest
|
Loading…
Reference in New Issue