Skip to content

Commit

Permalink
"watchman test" workflow cache name is now based on pyproject.toml hash.
Browse files Browse the repository at this point in the history
  • Loading branch information
christophe-david committed Jun 18, 2020
1 parent 89a9f4c commit 84bc081
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/watchman_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,25 +34,25 @@ jobs:
if: startsWith(runner.os, 'Linux')
with:
path: ~/.cache/pypoetry
key: ${{ runner.os }}-Py${{ matrix.python-version }}-watchman
key: ${{ runner.os }}-Py${{ matrix.python-version }}-watchman-${{ hashFiles('**/pyproject.toml') }}
restore-keys: |
${{ runner.os }}-Py${{ matrix.python-version }}-watchman
${{ runner.os }}-Py${{ matrix.python-version }}-watchman-
- uses: actions/cache@v2
if: startsWith(runner.os, 'macOS')
with:
path: /Users/runner/Library/Caches/pypoetry
key: ${{ runner.os }}-Py${{ matrix.python-version }}-watchman
key: ${{ runner.os }}-Py${{ matrix.python-version }}-watchman-${{ hashFiles('**/pyproject.toml') }}
restore-keys: |
${{ runner.os }}-Py${{ matrix.python-version }}-watchman
${{ runner.os }}-Py${{ matrix.python-version }}-watchman-
- uses: actions/cache@v2
if: startsWith(runner.os, 'Windows')
with:
path: ~\AppData\Local\pypoetry\Cache
key: ${{ runner.os }}-Py${{ matrix.python-version }}-watchman
key: ${{ runner.os }}-Py${{ matrix.python-version }}-watchman-${{ hashFiles('**/pyproject.toml') }}
restore-keys: |
${{ runner.os }}-Py${{ matrix.python-version }}-watchman
${{ runner.os }}-Py${{ matrix.python-version }}-watchman-
- name: Update production dependencies
run: poetry update --no-dev
Expand Down

0 comments on commit 84bc081

Please sign in to comment.