Add new setup-poetry action and fix nightly-release #212
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Problem
nightly-release
workflow is still failing after the previous "fix": #208.This time it's due to
make package
failing onpoetry build
, becausepoetry
wasn't setup properly in the workflow.https://github.com/pinecone-io/pinecone-python-client/actions/runs/6399744230/job/17372332268
While fixing this I noticed we're also not installing Poetry in the
publish-to-pypi
workflow, so callingpoetry version
andmake
commands there would fail. We need to make sure we're installing Poetry properly before usingmake
in our workflows, as they call Poetry under the hood.Solution
setup-poetry
action that encapsulates the install + dependencies bits. I noticed we were doing this explicitly in several workflows and thought it called for an action.nightly-release
worfklow: call the new action before callingmake package
.release-to-pypi
worfklow: call the new action before callingpoetry version
, andmake
commands for publishing.testing
worfklow.Type of Change
Test Plan
Validate PR workflows pass as expected. Merge and check
nightly-release
to make sure we're in good shape.