File tree Expand file tree Collapse file tree 1 file changed +19
-2
lines changed Expand file tree Collapse file tree 1 file changed +19
-2
lines changed Original file line number Diff line number Diff line change @@ -5,9 +5,7 @@ on: [push]
5
5
6
6
jobs :
7
7
build :
8
-
9
8
runs-on : ubuntu-latest
10
-
11
9
steps :
12
10
- uses : actions/checkout@v1
13
11
16
14
with :
17
15
python-version : 3.7
18
16
17
+ - name : Cache pre-commit hooks
18
+ uses : actions/cache@v1
19
+ with :
20
+ path : ~/.cache/pre-commit
21
+ key : " ${{ runner.os }}-pre-commit-\
22
+ ${{ hashFiles('**/.pre-commit-config.yaml') }}"
23
+ restore-keys : |
24
+ ${{ runner.os }}-pre-commit-
25
+
26
+ - name : Cache pip test requirements
27
+ uses : actions/cache@v1
28
+ with :
29
+ path : ~/.cache/pip
30
+ key : " ${{ runner.os }}-pip-test-\
31
+ ${{ hashFiles('**/requirements-test.txt') }}"
32
+ restore-keys : |
33
+ ${{ runner.os }}-pip-test-
34
+ ${{ runner.os }}-pip-
35
+
19
36
- name : Install dependencies
20
37
run : |
21
38
python -m pip install --upgrade pip
You can’t perform that action at this time.
0 commit comments