Forráskód Böngészése

Cache pip per python version

Jason Grout 5 éve
szülő
commit
726208ad57
1 módosított fájl, 2 hozzáadás és 2 törlés
  1. 2 2
      .github/workflows/tests.yml

+ 2 - 2
.github/workflows/tests.yml

@@ -33,9 +33,9 @@ jobs:
         if: startsWith(runner.os, 'Linux')
         with:
           path: ~/.cache/pip
-          key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
+          key: ${{ runner.os }}-pip-${{ matrix.python }}-${{ hashFiles('**/requirements.txt') }}
           restore-keys: |
-            ${{ runner.os }}-pip-
+            ${{ runner.os }}-pip-${{ matrix.python }}
 
       # Cache yarn
       - name: Get yarn cache directory path