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

Addings poetry caching to CI #66

Merged
merged 1 commit into from
Jul 14, 2024
Merged

Addings poetry caching to CI #66

merged 1 commit into from
Jul 14, 2024

Conversation

a-musing-moose
Copy link
Contributor

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.

Copy link
Contributor

@zahraaalizadeh zahraaalizadeh left a 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.

@@ -32,19 +34,22 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

- name: Install managment tools
Copy link
Contributor

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
Copy link
Contributor

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?

Copy link
Contributor Author

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.

@@ -53,14 +58,17 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

- name: Install managment tools
Copy link
Contributor

Choose a reason for hiding this comment

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

♻️

@@ -97,10 +105,14 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

- name: Install managment tools
Copy link
Contributor

Choose a reason for hiding this comment

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

♻️

@@ -143,10 +154,14 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

- name: Install managment tools
Copy link
Contributor

Choose a reason for hiding this comment

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

♻️

@@ -197,14 +215,14 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

- name: Install managment tools
Copy link
Contributor

Choose a reason for hiding this comment

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

♻️

@@ -10,20 +10,22 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

- name: Install managment tools
Copy link
Contributor

Choose a reason for hiding this comment

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

♻️

Base automatically changed from task-tweaks to main July 14, 2024 22:41
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.
@a-musing-moose a-musing-moose merged commit 8f2302c into main Jul 14, 2024
3 checks passed
@a-musing-moose a-musing-moose deleted the ci-caching branch July 14, 2024 22:47
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