👷 Update setup-python
action in tests to use new caching feature
#5680
+4
−6
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Updates the "Test" GitHub Actions workflow to use the cache feature on the
setup-python
action instead of the separatecache
action.This should resolve libffi problems failing builds right now e.g. https://github.com/tiangolo/fastapi/actions/runs/3531449114/jobs/5924630998 and simplify future maintenance.
Unfortunately there is not yet upstream support for caching based on the dependency section of a
pyproject.toml
and there will be a cache miss if unrelated metadata changes. See actions/setup-python#529.