-
Notifications
You must be signed in to change notification settings - Fork 0
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
Addings poetry caching to CI #66
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this! I verified it and it works perfectly.
template/.github/workflows/ci.yml
Outdated
@@ -32,19 +34,22 @@ jobs: | |||
- name: Checkout code | |||
uses: actions/checkout@v4 | |||
|
|||
- name: Install managment tools |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
managment > management
@@ -32,19 +34,22 @@ jobs: | |||
- name: Checkout code | |||
uses: actions/checkout@v4 | |||
|
|||
- name: Install managment tools | |||
run: pipx install poetry && pipx install invoke |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Question - Do we need to ensure that pipx is installed and available in the CI env?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Apparently not - it is installed by default. This approach is how the setup-python
actions recommends using Poetry.
template/.github/workflows/ci.yml
Outdated
@@ -53,14 +58,17 @@ jobs: | |||
- name: Checkout code | |||
uses: actions/checkout@v4 | |||
|
|||
- name: Install managment tools |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
♻️
template/.github/workflows/ci.yml
Outdated
@@ -97,10 +105,14 @@ jobs: | |||
- name: Checkout code | |||
uses: actions/checkout@v4 | |||
|
|||
- name: Install managment tools |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
♻️
template/.github/workflows/ci.yml
Outdated
@@ -143,10 +154,14 @@ jobs: | |||
- name: Checkout code | |||
uses: actions/checkout@v4 | |||
|
|||
- name: Install managment tools |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
♻️
template/.github/workflows/ci.yml
Outdated
@@ -197,14 +215,14 @@ jobs: | |||
- name: Checkout code | |||
uses: actions/checkout@v4 | |||
|
|||
- name: Install managment tools |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
♻️
template/.github/workflows/ci.yml
Outdated
@@ -10,20 +10,22 @@ jobs: | |||
- name: Checkout code | |||
uses: actions/checkout@v4 | |||
|
|||
- name: Install managment tools |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
♻️
The setup-python command has built in support for poetry. Somewhat confusingly it requires that poetry be installed _before_ `setup-python` is run. So that is what we do here - using the recommended approach of using pipx to install it.
51f6a68
to
ff6f0a5
Compare
The setup-python command has built in support for poetry. Somewhat confusingly it requires that poetry be installed before
setup-python
is run. So that is what we do here - using the recommended approach of using pipx to install it.