fix conda caching
MODIFY
.github/workflows/main.yaml
.github/workflows/main.yaml
@@ -29,13 +29,13 @@ jobs:
python-version: ${{ matrix.python-version }}
architecture: x64
- name: Cache conda
- uses: actions/cache@v1
+ uses: actions/cache@v2
env:
# Increase this value to reset cache if ci/py${{ matrix.python-version }}.yml has not changed
CACHE_NUMBER: 0
with:
path: ~/conda_pkgs_dir
- key: ${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-${{ hashFiles('ci/py${{ matrix.python-version }}.yml') }}
+ key: ${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-${{ hashFiles('ci/*.yml') }}
- name: setup miniconda
uses: conda-incubator/setup-miniconda@v2
with:

fix conda caching