From eb4d002f13e583b33e60bdc970e443640af5b89b Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Sun, 7 Jun 2020 21:29:06 +0300 Subject: [PATCH] Update CI config * update to `actions/cache@v2` * change cache key to take into account requirements.txt --- .github/workflows/ci.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 88855d25f..5544b1e4d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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: