From 598b4532263ad2063e5c6843db2e0e187e9b3b88 Mon Sep 17 00:00:00 2001 From: Paul Yang Date: Fri, 21 Jun 2024 15:07:20 -0700 Subject: [PATCH] Add `extra-hatch-configuration` to the cache config in Github workflows (#1295) Since the files in `extra-hatch-configuration` are used to specify project dependencies, updates to those files should affect how the environment is cached in Github workflows. --- .github/actions/setup-python-env/action.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/actions/setup-python-env/action.yaml b/.github/actions/setup-python-env/action.yaml index e0188284a8..5b0a2fb964 100644 --- a/.github/actions/setup-python-env/action.yaml +++ b/.github/actions/setup-python-env/action.yaml @@ -37,6 +37,7 @@ runs: key: >- python_location: "${{ env.pythonLocation }}" AND pyproject_hash: "${{ hashFiles('pyproject.toml') }}" AND + extra_hatch_configuration_hash: "${{ hashFiles('**/extra-hatch-configuration/*') }}" AND precommit_config_hash: "${{ hashFiles('.pre-commit-config.yaml') }}" AND linux_release: "${{ env.LINUX_RELEASE }}"