File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change 3333 uses : actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0
3434 with :
3535 python-version : ${{ inputs.python-version }}
36+ # It doesn't make a whole lot of sense to use the pre-commit config file
37+ # as the dependency file, but the setup-python action looks for
38+ # requirements.txt and pyproject.toml by default, which are both not
39+ # present (in most cases). To override these two defaults, we need to
40+ # specify a different file. Specifying the pre-commit config at least
41+ # guarantees that the cache is invalidated if the config changes.
42+ # Ideally we want to invalidate when the pre-commit or Python version
43+ # changes, but that's not easily possible.
3644 cache-dependency-path : .pre-commit-config.yaml
3745 cache : ' pip'
3846
You can’t perform that action at this time.
0 commit comments