Skip to content

Commit

Permalink
CircleCI config
Browse files Browse the repository at this point in the history
  • Loading branch information
glasserc committed Nov 15, 2019
1 parent 9c45926 commit 0090df0
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
version: 2.1
commands:
create-virtualenv:
steps:
- run: python3 -m venv ~/venv
- run: echo "source ~/venv/bin/activate" >> $BASH_ENV
jobs:
lint:
docker:
- image: circleci/python:3.7.3

steps:
- checkout

- create-virtualenv

- run:
name: Install all dependencies
command: |
pip install -r requirements.txt
pip install -r requirements_dev.txt
- run:
name: Install pre-commit
command: pip install pre-commit

- run:
name: Lint
command: pre-commit run --all-files --show-diff-on-failure

tests:
docker:
- image: circleci/python:3.7.3

steps:
- checkout

- create-virtualenv

- run:
name: Install real dependencies
command: pip install -r requirements.txt

- run:
name: Tests
command: py.test

0 comments on commit 0090df0

Please sign in to comment.