Explorar el Código

Cache pip per python version

Jason Grout hace 5 años
padre
commit
726208ad57
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  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