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

feat(ci): enable cache in setup-python #682

Merged
merged 4 commits into from
May 22, 2024

Conversation

34j
Copy link
Contributor

@34j 34j commented Mar 4, 2024

https://github.com/actions/setup-python/blob/main/docs/advanced-usage.md#caching-packages

This may speed up the test slightly. (although it will take longer to install poetry anyway)

@browniebroke
Copy link
Owner

I haven't found this to make a massive difference in my cases, and the workflow is more complicated (more lines) so not really worth it.

@34j
Copy link
Contributor Author

34j commented May 22, 2024

This is useful in the rare case of installing a library that takes an inordinate amount of time to install or using many libraries. However I'm also not sure if it should be in the template. (How about commenting it out or making this optional then?)

I would appreciate it if you could take a look at other PRs as well, thank you

with:
python-version: ${{ matrix.python-version }}
- uses: snok/install-poetry@v1.3.4
Copy link
Owner

Choose a reason for hiding this comment

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

I've just realised that this action uses the deprecated install script, and that the solution you suggest is the recommended one 👍

project/.github/workflows/ci.yml Outdated Show resolved Hide resolved
Copy link
Owner

@browniebroke browniebroke left a comment

Choose a reason for hiding this comment

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

Looks pretty good otherwise

@browniebroke browniebroke merged commit 7bd2ad5 into browniebroke:main May 22, 2024
17 checks passed
@browniebroke
Copy link
Owner

Thanks for the effort and your patience!

@34j 34j deleted the feat/cache-packages branch May 23, 2024 01:34
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.

None yet

2 participants