Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Eliminate actions/cache@v2 usage #2322

Merged
merged 1 commit into from
Jan 9, 2025
Merged

Conversation

kurtmckee
Copy link
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/
with:
python-version: ${{ matrix.python-version }}
cache: "pip"
Copy link
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
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
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Member

@DanielNoord DanielNoord left a comment

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
18 checks passed
@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