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

Make CI workflows simpler #15

Merged
merged 1 commit into from
Sep 29, 2023

Conversation

OmeGak
Copy link
Member

@OmeGak OmeGak commented Sep 28, 2023

We don't gain anything anymore by having a setup step in the workflows. The original idea is that the setup step caches the virtualenv generated by poetry install --no-root, which was common in the linting and testing workflows. They both require to run now poetry install.

The benefit may haven even been negative before, since our dependencies are not too heavy nor we change them too often. The overhead of having to run an additional step with actions/checkout@v3 and actions/setup-python@v4 is likely higher (didn't check) than the any time we may be saving from caching.

This PR simplifies the workflows, making them more maintainable, caching instead the entire virtualenv and possibly reducing the time CI takes to run.


Workflows take half the time with the changes in this PR.

@OmeGak OmeGak merged commit 3faf43f into unconventionaldotdev:master Sep 29, 2023
4 checks passed
@OmeGak OmeGak deleted the wip/simpler-ci branch September 29, 2023 00:37
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