Update CI config

* update to `actions/cache@v2`
* change cache key to take into account requirements.txt
This commit is contained in:
XhmikosR
2020-06-07 21:29:06 +03:00
committed by GitHub
parent 2565d15719
commit eb4d002f13

View 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: