-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from jpower432/chore/update-poetry-setup
chore: creates composite action with full poetry setup
- Loading branch information
Showing
2 changed files
with
43 additions
and
17 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,38 @@ | ||
name: "setup-poetry" | ||
description: "Composite action to setup poetry." | ||
|
||
inputs: | ||
poetry-version: | ||
required: false | ||
description: "The poetry version to use" | ||
default: "1.5.1" | ||
python-version: | ||
required: false | ||
description: "The python version to use" | ||
default: "3.11" | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Install Poetry | ||
run: pipx install poetry==${{ inputs.poetry-version }} | ||
shell: bash | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ inputs.python-version }} | ||
cache: poetry | ||
cache-dependency-path: poetry.lock | ||
|
||
- name: Set Poetry environment | ||
run: poetry env use ${{ inputs.python-version }} | ||
shell: bash | ||
|
||
- name: Install dependencies | ||
run: poetry install --no-root | ||
shell: bash | ||
|
||
- name: Install dependencies | ||
run: poetry install --no-interaction --no-root | ||
shell: bash |
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