File tree 1 file changed +29
-13
lines changed
1 file changed +29
-13
lines changed Original file line number Diff line number Diff line change 1
- version : 2.1
2
-
3
- orbs :
4
- python : circleci/python@0.2.1
1
+ version : 2
5
2
6
3
jobs :
7
- build-and-test :
8
- executor : python/default
4
+ build :
5
+ docker :
6
+ - image : circleci/python:3.6.2-stretch-browsers
7
+ environment :
8
+ SPURWING_PID : ${SPURWING_PID}
9
+ SPURWING_KEY : ${SPURWING_KEY}
9
10
steps :
10
11
- checkout
11
- - python/load-cache
12
- - python/install-deps
13
- - python/save-cache
12
+ - restore_cache :
13
+ key : deps1-{{ .Branch }}-{{ checksum "requirements.txt" }}
14
14
- run :
15
- command : ./manage.py test
16
- name : Test
15
+ name : Install Python deps in a venv
16
+ command : |
17
+ python3 -m venv venv
18
+ . venv/bin/activate
19
+ pip install -r requirements.txt
20
+ - save_cache :
21
+ key : deps1-{{ .Branch }}-{{ checksum "requirements.txt" }}
22
+ paths :
23
+ - " venv"
24
+ - run :
25
+ command : |
26
+ . venv/bin/activate
27
+ python spurwing/test_api.py
28
+ - store_artifacts :
29
+ path : test-reports/
30
+ destination : tr1
31
+ - store_test_results :
32
+ path : test-reports/
17
33
18
34
workflows :
19
- main :
35
+ build-and-test :
20
36
jobs :
21
- - build-and-test
37
+ - build
You can’t perform that action at this time.
0 commit comments