Skip to content

Commit

Permalink
Update tests.yml
Browse files Browse the repository at this point in the history
Cache key was missing info about Python version
  • Loading branch information
christophe-david committed May 25, 2020
1 parent bb58c40 commit 156b30f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,25 +31,25 @@ jobs:
if: startsWith(runner.os, 'Linux')
with:
path: ~/.cache/pypoetry
key: ${{ runner.os }}-pypoetry-${{ hashFiles('**/poetry.lock') }}
key: ${{ runner.os }}-Py${{ matrix.python-version }}-pypoetry-${{ hashFiles('**/poetry.lock') }}
restore-keys: |
${{ runner.os }}-pypoetry-
${{ runner.os }}-Py${{ matrix.python-version }}-pypoetry-
- uses: actions/cache@v1
if: startsWith(runner.os, 'macOS')
with:
path: ~/Library/Caches/pypoetry
key: ${{ runner.os }}-pypoetry-${{ hashFiles('**/poetry.lock') }}
key: ${{ runner.os }}-Py${{ matrix.python-version }}-pypoetry-${{ hashFiles('**/poetry.lock') }}
restore-keys: |
${{ runner.os }}-pypoetry-
${{ runner.os }}-Py${{ matrix.python-version }}-pypoetry-
- uses: actions/cache@v1
if: startsWith(runner.os, 'Windows')
with:
path: ~\AppData\Local\pypoetry\Cache
key: ${{ runner.os }}-pypoetry-${{ hashFiles('**/poetry.lock') }}
key: ${{ runner.os }}-Py${{ matrix.python-version }}-pypoetry-${{ hashFiles('**/poetry.lock') }}
restore-keys: |
${{ runner.os }}-pypoetry-
${{ runner.os }}-Py${{ matrix.python-version }}-pypoetry-
- name: Activate environment and install dependencies
run: poetry install
Expand Down

0 comments on commit 156b30f

Please sign in to comment.