Skip to content

Commit 0090df0

Browse files
committed
CircleCI config
1 parent 9c45926 commit 0090df0

1 file changed

Lines changed: 46 additions & 0 deletions

File tree

.circleci/config.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
version: 2.1
2+
commands:
3+
create-virtualenv:
4+
steps:
5+
- run: python3 -m venv ~/venv
6+
- run: echo "source ~/venv/bin/activate" >> $BASH_ENV
7+
jobs:
8+
lint:
9+
docker:
10+
- image: circleci/python:3.7.3
11+
12+
steps:
13+
- checkout
14+
15+
- create-virtualenv
16+
17+
- run:
18+
name: Install all dependencies
19+
command: |
20+
pip install -r requirements.txt
21+
pip install -r requirements_dev.txt
22+
23+
- run:
24+
name: Install pre-commit
25+
command: pip install pre-commit
26+
27+
- run:
28+
name: Lint
29+
command: pre-commit run --all-files --show-diff-on-failure
30+
31+
tests:
32+
docker:
33+
- image: circleci/python:3.7.3
34+
35+
steps:
36+
- checkout
37+
38+
- create-virtualenv
39+
40+
- run:
41+
name: Install real dependencies
42+
command: pip install -r requirements.txt
43+
44+
- run:
45+
name: Tests
46+
command: py.test

0 commit comments

Comments
 (0)