Skip to content

fix: replace poetry installation with bash for github actions #903

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

Merged
merged 1 commit into from
Jun 13, 2025

Conversation

JuanLeee
Copy link
Collaborator

@JuanLeee JuanLeee commented Jun 13, 2025

Description

abatilo/actions-poetry#76

Known issue of poetry failing to install on ubuntu-latest

Changing installation to a bash command instead.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@JuanLeee JuanLeee force-pushed the fix/pipelinePoetry branch 2 times, most recently from a1cf54d to 6596e52 Compare June 13, 2025 10:36
with:
poetry-version: ${{ matrix.poetry-version }}
shell: bash
run: |
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Why Use |?

Clarity: Even for a single command, using | makes it clear that the value is a multi-line string (and it’s a common convention in GitHub Actions).

Flexibility: If you later add more commands, you can do so without changing the YAML structure. For example:

@JuanLeee JuanLeee force-pushed the fix/pipelinePoetry branch 5 times, most recently from 7a85376 to 91c4708 Compare June 13, 2025 17:15
shell: bash
run: |
pipx install poetry==${{matrix.poetry-version}}
poetry config virtualenvs.prefer-active-python true
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Not using the current python version installed causing all tests to run on python 3.12

Copy link
Contributor

Choose a reason for hiding this comment

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

Can we add this comment directly to the workflow file for context

@JuanLeee JuanLeee force-pushed the fix/pipelinePoetry branch from 91c4708 to bfe18cf Compare June 13, 2025 17:22
@karenc-bq karenc-bq merged commit cc4af78 into aws:main Jun 13, 2025
5 checks passed
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.

3 participants