File tree 1 file changed +57
-0
lines changed
1 file changed +57
-0
lines changed Original file line number Diff line number Diff line change
1
+ version : 2.1
2
+
3
+ executors :
4
+ python38 :
5
+ docker :
6
+ - image : circleci/python:3.8
7
+
8
+ commands :
9
+ setup_tox :
10
+ description : " Install tox"
11
+ steps :
12
+ - run : pip install -U tox-factor
13
+
14
+ restore_tox_cache :
15
+ description : " Restore .tox directory from previous runs for faster installs"
16
+ steps :
17
+ - restore_cache :
18
+ # In the cache key:
19
+ # - .Environment.CIRCLE_JOB: We do separate tox environments by job name, so caching and restoring is
20
+ # much faster.
21
+ key : tox-cache-{{ .Environment.CIRCLE_JOB }}-{{ checksum "tox.ini" }}-{{ checksum "dev-requirements.txt" }}
22
+
23
+ save_tox_cache :
24
+ description : " Save .tox directory into cache for faster installs next time"
25
+ steps :
26
+ - save_cache :
27
+ # In the cache key:
28
+ # - .Environment.CIRCLE_JOB: We do separate tox environments by job name, so caching and restoring is
29
+ # much faster.
30
+ key : tox-cache-{{ .Environment.CIRCLE_JOB }}-{{ checksum "tox.ini" }}-{{ checksum "dev-requirements.txt" }}
31
+ paths :
32
+ - " .tox"
33
+
34
+ jobs :
35
+ docs :
36
+ executor : python38
37
+ steps :
38
+ - checkout
39
+ - setup_tox
40
+ - restore_tox_cache
41
+ - run : tox -e docs
42
+ - save_tox_cache
43
+
44
+ lint :
45
+ executor : python38
46
+ steps :
47
+ - checkout
48
+ - setup_tox
49
+ - restore_tox_cache
50
+ - run : tox -e lint
51
+ - save_tox_cache
52
+
53
+ workflows :
54
+ main :
55
+ jobs :
56
+ - docs
57
+ - lint
You can’t perform that action at this time.
0 commit comments