Quellcode durchsuchen

Cache pip per python version

Jason Grout vor 5 Jahren
Ursprung
Commit
726208ad57
1 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  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