Skip to content

Eliminate actions/cache@v2 usage#2322

Merged
DanielNoord merged 1 commit into
PyCQA:mainfrom
kurtmckee:rm-actions-cache
Jan 9, 2025
Merged

Eliminate actions/cache@v2 usage#2322
DanielNoord merged 1 commit into
PyCQA:mainfrom
kurtmckee:rm-actions-cache

Conversation

@kurtmckee

Copy link
Copy Markdown
Contributor

GitHub is shutting down this old action version on February 1st, 2025.

In addition, its usage here is no longer needed, because new versions of actions/setup-python can do this caching.

@DanielNoord As noted above, this is a time-sensitive PR because actions/cache@v2 will be removed from GitHub soon.

GitHub is shutting down this old action version on February 1st, 2025.
In addition, its usage here is no longer needed,
because new versions of `actions/setup-python` can do this caching.

https://github.blog/changelog/2024-09-16-notice-of-upcoming-deprecations-and-changes-in-github-actions-services/
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: "pip"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this be poetry?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Setting it to pip maintains parity with the previous caching usage, which was caching the packages downloaded by pip, not virtual environments created by Poetry.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@DanielNoord DanielNoord left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, didn't notice that we were not caching poetry previously.

@DanielNoord DanielNoord merged commit 2b07182 into PyCQA:main Jan 9, 2025
@kurtmckee kurtmckee deleted the rm-actions-cache branch January 9, 2025 16:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants