Skip to content

Commit 4f5f30a

Browse files
committed
Add CircleCI
1 parent a9badd7 commit 4f5f30a

File tree

2 files changed

+35
-0
lines changed

2 files changed

+35
-0
lines changed

.circleci/config.yaml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
version: 2
2+
jobs:
3+
unit tests:
4+
working_directory: ~/project
5+
docker:
6+
- image: circleci/python:3.6.5-stretch
7+
steps:
8+
- checkout
9+
- run: |
10+
python3 -m venv ~/venv
11+
. ~/venv/bin/activate
12+
pip install -e[dev]
13+
- run: make lint
14+
15+
test:
16+
working_directory: ~/project
17+
docker:
18+
- image: circleci/python:3.6.5-stretch
19+
steps:
20+
- checkout
21+
- run: |
22+
python3 -m venv ~/venv
23+
. ~/venv/bin/activate
24+
pip install -e[dev]
25+
- run: make test
26+
27+
workflows:
28+
version: 2
29+
build_and_test:
30+
jobs:
31+
- lint
32+
- test

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ isort-check:
1818
mypy:
1919
mypy .
2020

21+
test:
22+
pytest -v .
23+
2124
build:
2225
python3 setup.py sdist bdist_wheel
2326

0 commit comments

Comments
 (0)