Skip to content

Commit 843d59a

Browse files
committed
Try fixing cache
1 parent c055297 commit 843d59a

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,19 +36,25 @@ jobs:
3636
- '3.8'
3737
- '3.9'
3838
- '3.10'
39+
40+
defaults:
41+
run:
42+
shell: bash
3943
steps:
4044
- uses: actions/checkout@v2
4145

4246
- uses: actions/setup-python@v2
4347
with:
4448
python-version: ${{ matrix.python-version }}
4549

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+
4654
- uses: actions/cache@v2
4755
with:
4856
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') }}
5258

5359
- name: Upgrade packaging tools
5460
run: python -m pip install --upgrade pip setuptools virtualenv wheel

0 commit comments

Comments
 (0)