Update CI config
authorXhmikosR <redacted>
Sun, 7 Jun 2020 18:29:06 +0000 (21:29 +0300)
committerGitHub <redacted>
Sun, 7 Jun 2020 18:29:06 +0000 (21:29 +0300)
* update to `actions/cache@v2`
* change cache key to take into account requirements.txt

.github/workflows/ci.yml

index 88855d25f14bfdfb01c692e549ed9429b7718de8..5544b1e4d8242f3d7a330514ad1de0f4aa5d14aa 100644 (file)
@@ -21,14 +21,14 @@ jobs:
         uses: actions/setup-python@v1
         with:
           python-version: ${{ matrix.python }}
-          architecture: 'x64'
+          architecture: "x64"
 
       - name: Cache dependencies
-        uses: actions/cache@v1
+        uses: actions/cache@v2
         with:
           path: ~/miniconda3
-          key: ${{ runner.os }}-python-v${{ matrix.python }}-${{ hashFiles('ci/*.sh') }}-${{ hashFiles('.github/workflows/ci.yml') }}
-          restore-keys: ${{ runner.os }}-python-v${{ matrix.python }}-${{ hashFiles('ci/*.sh') }}-${{ hashFiles('.github/workflows/ci.yml') }}
+          key: ${{ runner.os }}-python-v${{ matrix.python }}-${{ hashFiles('**/requirements.txt') }}-${{ hashFiles('ci/*.sh') }}
+          restore-keys: ${{ runner.os }}-python-v${{ matrix.python }}-${{ hashFiles('**/requirements.txt') }}-${{ hashFiles('ci/*.sh') }}
 
       - name: Install conda
         env:
git clone https://git.99rst.org/PROJECT