-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Alex Goodman <[email protected]>
- Loading branch information
Showing
2 changed files
with
15 additions
and
18 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 |
---|---|---|
|
@@ -57,28 +57,25 @@ runs: | |
with: | ||
python-version: ${{ inputs.python-version }} | ||
|
||
- name: Install poetry | ||
- name: Install Poetry | ||
if: inputs.python == 'true' | ||
uses: abatilo/actions-poetry@3765cf608f2d4a72178a9fc5b918668e542b89b1 # v4.0.0 | ||
with: | ||
poetry-version: ${{ inputs.poetry-version }} | ||
shell: bash | ||
run: | | ||
pipx install poetry==${{ inputs.poetry-version }} | ||
- name: Cache Poetry virtualenv | ||
uses: actions/[email protected] | ||
if: inputs.python == 'true' && inputs.use-poetry-cache == 'true' | ||
id: cache | ||
- name: Cache Poetry cache | ||
uses: actions/cache@v4 | ||
if: inputs.python == 'true' | ||
with: | ||
path: ~/.virtualenvs | ||
key: ${{ inputs.cache-key-prefix }}-${{ hashFiles('poetry.lock') }} | ||
restore-keys: | | ||
${{ inputs.cache-key-prefix }}- | ||
path: ~/.cache/pypoetry | ||
key: poetry-cache-${{ runner.os }}-${{ inputs.python-version }}-${{ inputs.poetry-version }} | ||
|
||
- name: Setup Poetry config | ||
- name: Cache Packages | ||
uses: actions/cache@v4 | ||
if: inputs.python == 'true' | ||
shell: bash | ||
run: | | ||
poetry config virtualenvs.in-project false | ||
poetry config virtualenvs.path ~/.virtualenvs | ||
with: | ||
path: ~/.local | ||
key: poetry-local-${{ runner.os }}-${{ inputs.python-version }}-${{ hashFiles('**/poetry.lock') }}-${{ hashFiles('.github/workflows/*.yml') }} | ||
|
||
- name: Bootstrap python dependencies | ||
if: inputs.python == 'true' | ||
|
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