Skip to content

Commit

Permalink
Clean poisoned cache
Browse files Browse the repository at this point in the history
  • Loading branch information
staticdev committed Dec 10, 2022
1 parent ccddf1d commit 1472b9d
Showing 1 changed file with 28 additions and 27 deletions.
55 changes: 28 additions & 27 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,35 +15,36 @@ jobs:
- name: Check out the repository
uses: actions/checkout@v3

- name: Ubuntu cache
uses: actions/cache@v2
if: startsWith(matrix.os, 'ubuntu')
with:
path: ~/.cache/pip
key:
${{ matrix.os }}-${{ matrix.python }}-${{ hashFiles('**/pyproject.toml') }}
restore-keys: |
${{ matrix.os }}-${{ matrix.python }}-
# Clean poisoned cache
# - name: Ubuntu cache
# uses: actions/cache@v2
# if: startsWith(matrix.os, 'ubuntu')
# with:
# path: ~/.cache/pip
# key:
# ${{ matrix.os }}-${{ matrix.python }}-${{ hashFiles('**/pyproject.toml') }}
# restore-keys: |
# ${{ matrix.os }}-${{ matrix.python }}-

- name: macOS cache
uses: actions/cache@v2
if: startsWith(matrix.os, 'macOS')
with:
path: ~/Library/Caches/pip
key:
${{ matrix.os }}-${{ matrix.python }}-${{ hashFiles('**/pyproject.toml') }}
restore-keys: |
${{ matrix.os }}-${{ matrix.python }}-
# - name: macOS cache
# uses: actions/cache@v2
# if: startsWith(matrix.os, 'macOS')
# with:
# path: ~/Library/Caches/pip
# key:
# ${{ matrix.os }}-${{ matrix.python }}-${{ hashFiles('**/pyproject.toml') }}
# restore-keys: |
# ${{ matrix.os }}-${{ matrix.python }}-

- name: Windows cache
uses: actions/cache@v2
if: startsWith(matrix.os, 'windows')
with:
path: c:\users\runneradmin\appdata\local\pip\cache
key:
${{ matrix.os }}-${{ matrix.python }}-${{ hashFiles('**/pyproject.toml') }}
restore-keys: |
${{ matrix.os }}-${{ matrix.python }}-
# - name: Windows cache
# uses: actions/cache@v2
# if: startsWith(matrix.os, 'windows')
# with:
# path: c:\users\runneradmin\appdata\local\pip\cache
# key:
# ${{ matrix.os }}-${{ matrix.python }}-${{ hashFiles('**/pyproject.toml') }}
# restore-keys: |
# ${{ matrix.os }}-${{ matrix.python }}-

- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v4
Expand Down

0 comments on commit 1472b9d

Please sign in to comment.