Skip to content

Commit 084f5a5

Browse files
committed
Add the Circle CI configuration.
1 parent 4ae31ab commit 084f5a5

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.circleci/config.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# Python CircleCI 2.0 configuration file
2+
#
3+
# Check https://circleci.com/docs/2.0/language-python/ for more details
4+
#
5+
version: 2
6+
jobs:
7+
build:
8+
docker:
9+
- image: circleci/python:3.7.3
10+
11+
working_directory: ~/repo
12+
13+
steps:
14+
- checkout
15+
16+
# Download and cache dependencies
17+
- restore_cache:
18+
keys:
19+
- v1-dependencies-{{ checksum "requirements.txt" }}
20+
# fallback to using the latest cache if no exact match is found
21+
- v1-dependencies-
22+
23+
- run:
24+
name: install dependencies
25+
command: |
26+
python3 -m venv venv
27+
. venv/bin/activate
28+
python setup.py install
29+
30+
- save_cache:
31+
paths:
32+
- ./venv
33+
key: v1-dependencies-{{ checksum "requirements.txt" }}
34+
35+
- run:
36+
name: run tests
37+
command: |
38+
. venv/bin/activate
39+
python setup.py test

0 commit comments

Comments
 (0)