Fix pip cache ordering: move checkout first, use setup-python built-in cache#71
Merged
C-Achard merged 4 commits intoMMathisLab-pypifrom Mar 23, 2026
Merged
Conversation
Co-authored-by: MMathisLab <28102185+MMathisLab@users.noreply.github.com> Agent-Logs-Url: https://github.com/DeepLabCut/DeepLabCut-live-GUI/sessions/21ab9ebe-25bd-4963-b3c9-01ecbf60de45
Copilot
AI
changed the title
[WIP] [WIP] Address feedback on Python package release workflow refactor
Fix pip cache ordering: move checkout first, use setup-python built-in cache
Mar 23, 2026
Update .github/workflows/python-package.yml to use actions/checkout@v6 and actions/setup-python@v6. Keeps the workflow up-to-date with no functional changes to Python version or caching.
Update GitHub Actions workflow to use pyproject.toml as the sole cache-dependency-path for pip, removing requirements.txt, setup.cfg, and setup.py to avoid unnecessary cache invalidation. Add a clarifying comment and clean up trailing whitespace in the workflow file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
actions/cacheran beforeactions/checkout, sohashFiles(...)evaluated against an empty workspace — producing a constant cache key and making dependency caching effectively a no-op.Changes
actions/checkoutto be the first step so all subsequent steps have access to workspace filesactions/cachewithsetup-python's built-incache: pip— eliminates the ordering problem entirely and reduces boilerplate✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.