File tree 1 file changed +7
-2
lines changed
1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -14,20 +14,25 @@ jobs:
14
14
- uses : actions/setup-python@v1
15
15
with :
16
16
python-version : 3.8
17
+ - name : Store installed Python version
18
+ run : |
19
+ echo "::set-env name=PY_VERSION::"\
20
+ "$(python -c "import platform;print(platform.python_version())")"
17
21
- name : Cache pip test requirements
18
22
uses : actions/cache@v1
19
23
with :
20
24
path : ~/.cache/pip
21
- key : " ${{ runner.os }}-pip-test-\
25
+ key : " ${{ runner.os }}-pip-test-py${{ env.PY_VERSION }}- \
22
26
${{ hashFiles('**/requirements-test.txt') }}"
23
27
restore-keys : |
28
+ ${{ runner.os }}-pip-test-py${{ env.PY_VERSION }}-
24
29
${{ runner.os }}-pip-test-
25
30
${{ runner.os }}-pip-
26
31
- name : Cache pre-commit hooks
27
32
uses : actions/cache@v1
28
33
with :
29
34
path : ~/.cache/pre-commit
30
- key : " ${{ runner.os }}-pre-commit-\
35
+ key : " ${{ runner.os }}-pre-commit-py${{ env.PY_VERSION }}- \
31
36
${{ hashFiles('**/.pre-commit-config.yaml') }}"
32
37
- name : Install dependencies
33
38
run : |
You can’t perform that action at this time.
0 commit comments