From: XhmikosR Date: Sun, 7 Jun 2020 18:29:06 +0000 (+0300) Subject: Update CI config X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=eb4d002f13e583b33e60bdc970e443640af5b89b;p=stevenblack-hosts.git Update CI config * update to `actions/cache@v2` * change cache key to take into account requirements.txt --- 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: