Skip to content

Commit

Permalink
Update cache keys in the build workflow
Browse files Browse the repository at this point in the history
Now that we only have one pair of `pipenv` configuration with lockfile
and use the lockfile in the `test` job, then it makes sense to hash the
lockfile and use it as part of the cache key for that job.
  • Loading branch information
mcdonnnj committed May 13, 2024
1 parent 0897fda commit fc8a5be
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,8 @@ jobs:
${{ env.PIP_CACHE_DIR }}
key: "${{ env.BASE_CACHE_KEY }}\
${{ hashFiles('**/requirements-test.txt') }}-\
${{ hashFiles('**/requirements.txt') }}"
${{ hashFiles('**/requirements.txt') }}-\
${{ hashFiles('Pipfile.lock') }}"
restore-keys: |
${{ env.BASE_CACHE_KEY }}
- name: Install core dependencies
Expand Down

0 comments on commit fc8a5be

Please sign in to comment.