forked from python-poetry/poetry
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9ac132a
commit 70306cb
Showing
3 changed files
with
54 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: Bootstrap Poetry | ||
description: Configure the environment with the specified Python and Poetry version. | ||
|
||
inputs: | ||
python-version: | ||
description: Desired Python version | ||
default: "3.12" | ||
python-latest: | ||
description: Use an uncached Python if a newer match is available | ||
default: 'false' | ||
poetry-spec: | ||
description: pip-compatible installation specification to use for Poetry | ||
default: 'poetry' | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
# Enable handling long path names (+260 char) on the Windows platform | ||
# https://docs.microsoft.com/en-us/windows/win32/fileio/naming-a-file#maximum-path-length-limitation | ||
- id: git-config-longpaths | ||
if: runner.os == 'Windows' | ||
shell: pwsh | ||
run: git config --system core.longpaths true | ||
|
||
- id: pipx-poetry | ||
shell: bash | ||
run: pipx install '${{ inputs.poetry-spec }}' | ||
|
||
- id: setup-python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ inputs.python-version }} | ||
check-latest: ${{ inputs.python-latest == 'true' }} | ||
cache: poetry |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters