Adjust cache key name

Make the job name the first part of the cache key since
it is the only part that isn't variable.
pull/113/head
Nicholas McDonnell 4 years ago
parent 6ab69f4f51
commit 969efdd0bb
No known key found for this signature in database
GPG Key ID: 7994ADE2A56BE5D1
  1. 6
      .github/workflows/build.yml

@ -29,12 +29,12 @@ jobs:
path: | path: |
${{ env.PIP_CACHE_DIR }} ${{ env.PIP_CACHE_DIR }}
${{ env.PRE_COMMIT_CACHE_DIR }} ${{ env.PRE_COMMIT_CACHE_DIR }}
key: "${{ runner.os }}-lint-py${{ env.PY_VERSION }}-\ key: "lint-${{ runner.os }}-py${{ env.PY_VERSION }}-\
${{ hashFiles('**/requirements-test.txt') }}-\ ${{ hashFiles('**/requirements-test.txt') }}-\
${{ hashFiles('**/.pre-commit-config.yaml') }}" ${{ hashFiles('**/.pre-commit-config.yaml') }}"
restore-keys: | restore-keys: |
${{ runner.os }}-lint-py${{ env.PY_VERSION }}- lint-${{ runner.os }}-py${{ env.PY_VERSION }}-
${{ runner.os }}-lint- lint-${{ runner.os }}-
- name: Install dependencies - name: Install dependencies
run: | run: |
python -m pip install --upgrade pip python -m pip install --upgrade pip

Loading…
Cancel
Save