File tree Expand file tree Collapse file tree 1 file changed +39
-0
lines changed Expand file tree Collapse file tree 1 file changed +39
-0
lines changed Original file line number Diff line number Diff line change
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
You can’t perform that action at this time.
0 commit comments