File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -36,19 +36,25 @@ jobs:
36
36
- ' 3.8'
37
37
- ' 3.9'
38
38
- ' 3.10'
39
+
40
+ defaults :
41
+ run :
42
+ shell : bash
39
43
steps :
40
44
- uses : actions/checkout@v2
41
45
42
46
- uses : actions/setup-python@v2
43
47
with :
44
48
python-version : ${{ matrix.python-version }}
45
49
50
+ - name : Get full Python version
51
+ id : full-python-version
52
+ run : echo ::set-output name=version::$(python -c "import sys; print('-'.join(str(v) for v in sys.version_info))")
53
+
46
54
- uses : actions/cache@v2
47
55
with :
48
56
path : ~/.cache/pip
49
- key : ${{ runner.os }}-pip-${{ hashFiles('**/poetry.lock') }}
50
- restore-keys : |
51
- ${{ runner.os }}-pip-
57
+ key : ${{ runner.os }}-${{ steps.full-python-version.outputs.version }}-${{ hashFiles('**/poetry.lock') }}
52
58
53
59
- name : Upgrade packaging tools
54
60
run : python -m pip install --upgrade pip setuptools virtualenv wheel
You can’t perform that action at this time.
0 commit comments