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

Switch to cache included in setup-python action #1513

Closed
wants to merge 3 commits into from
Closed

Conversation

alexrudd2
Copy link
Collaborator

Currently the GH actions CI uses syphar/restore-virtualenv@v1 to restore cache/restore pip dependencies.

It should be possible to do this with actions/setup-python@v4 directly, since it has built-in caching.

@alexrudd2 alexrudd2 marked this pull request as draft April 24, 2023 17:15
@alexrudd2
Copy link
Collaborator Author

Bah, I'm going to rebase this on #1512 to avoid the mypy error.

@alexrudd2 alexrudd2 changed the title Switch to cache built in in setup-python action Switch to cache included in setup-python action Apr 24, 2023
Copy link
Collaborator

@janiversen janiversen left a comment

Choose a reason for hiding this comment

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

I like your idea ! but please do not mix code changes and CI changes. I really prefer a PR with only the CI change.

(could this be due to the PR I just merged, in which case it is just a rebase)

@alexrudd2
Copy link
Collaborator Author

I like your idea ! but please do not mix code changes and CI changes. I really prefer a PR with only the CI change.

(could this be due to the PR I just merged, in which case it is just a rebase)

Yes, I had to start with the PR you just merged or the CI fails :). I am going to rebase again, which will drop the code change.

@alexrudd2
Copy link
Collaborator Author

Actually, this PR makes things slower because it only installs the downloads, not the install. actions/setup-python#330.

Therefore, closing.

@alexrudd2 alexrudd2 closed this Apr 24, 2023
@alexrudd2 alexrudd2 deleted the actions-cache branch April 24, 2023 17:41
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 5, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants