Skip to content

Conversation

@mvadari
Copy link
Collaborator

@mvadari mvadari commented Oct 18, 2022

High Level Overview of Change

This PR caches the installation of poetry. It shaves about 10-15 seconds off of CI. It also fixes an issue where we were unintentionally installing Python twice.

Context of Change

Everybody likes speedy CI.

I implemented this in XRPLF/xbridge-cli#62 and figured I might as well do it here too.

Type of Change

  • Tests (You added tests for code that already exists, or your new feature included in this PR)

Test Plan

Works in CI.

@mvadari mvadari marked this pull request as ready for review October 18, 2022 19:41
@mvadari mvadari requested a review from justinr1234 October 18, 2022 20:13
- name: Install poetry
run: pipx install poetry
run: |
curl -sSL https://install.python-poetry.org/ | python -
Copy link
Contributor

Choose a reason for hiding this comment

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

Is -sSL supposed to be camelCase?

Copy link
Contributor

Choose a reason for hiding this comment

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

I think so yes

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

s, S, and L are all independent flags.

More details are here: https://curl.se/docs/manpage.html

Copy link
Contributor

@JST5000 JST5000 left a comment

Choose a reason for hiding this comment

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

LGTM other than one quality of life question

@mvadari mvadari merged commit 440e506 into master Oct 25, 2022
@mvadari mvadari deleted the cache-poetry branch October 25, 2022 15:26
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.

4 participants