mirror of
https://github.com/hwchase17/langchain
synced 2024-11-16 06:13:16 +00:00
Re-enable poetry binary caching with fix and more logging. (#10244)
- Revert "Temporarily disable step that seems to be transiently failing. (#10234)" - Refresh shell hashtable and show poetry/python location and version.
This commit is contained in:
parent
803be5b986
commit
619516260d
34
.github/actions/poetry_setup/action.yml
vendored
34
.github/actions/poetry_setup/action.yml
vendored
@ -31,26 +31,36 @@ runs:
|
|||||||
with:
|
with:
|
||||||
python-version: ${{ inputs.python-version }}
|
python-version: ${{ inputs.python-version }}
|
||||||
|
|
||||||
# - uses: actions/cache@v3
|
- uses: actions/cache@v3
|
||||||
# id: cache-bin-poetry
|
id: cache-bin-poetry
|
||||||
# name: Cache Poetry binary - Python ${{ inputs.python-version }}
|
name: Cache Poetry binary - Python ${{ inputs.python-version }}
|
||||||
# env:
|
env:
|
||||||
# SEGMENT_DOWNLOAD_TIMEOUT_MIN: "1"
|
SEGMENT_DOWNLOAD_TIMEOUT_MIN: "1"
|
||||||
# with:
|
with:
|
||||||
# path: |
|
path: |
|
||||||
# /opt/pipx/venvs/poetry
|
/opt/pipx/venvs/poetry
|
||||||
# /opt/pipx_bin/poetry
|
/opt/pipx_bin/poetry
|
||||||
# # This step caches the poetry installation, so make sure it's keyed on the poetry version as well.
|
# This step caches the poetry installation, so make sure it's keyed on the poetry version as well.
|
||||||
# key: bin-poetry-${{ runner.os }}-${{ runner.arch }}-py-${{ inputs.python-version }}-${{ inputs.poetry-version }}
|
key: bin-poetry-${{ runner.os }}-${{ runner.arch }}-py-${{ inputs.python-version }}-${{ inputs.poetry-version }}
|
||||||
|
|
||||||
- name: Install poetry
|
- name: Install poetry
|
||||||
# if: steps.cache-bin-poetry.outputs.cache-hit != 'true'
|
if: steps.cache-bin-poetry.outputs.cache-hit != 'true'
|
||||||
shell: bash
|
shell: bash
|
||||||
env:
|
env:
|
||||||
POETRY_VERSION: ${{ inputs.poetry-version }}
|
POETRY_VERSION: ${{ inputs.poetry-version }}
|
||||||
PYTHON_VERSION: ${{ inputs.python-version }}
|
PYTHON_VERSION: ${{ inputs.python-version }}
|
||||||
run: pipx install "poetry==$POETRY_VERSION" --python "python$PYTHON_VERSION" --verbose
|
run: pipx install "poetry==$POETRY_VERSION" --python "python$PYTHON_VERSION" --verbose
|
||||||
|
|
||||||
|
- name: Refresh shell hashtable and show python/poetry binaries and versions
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
set -eux
|
||||||
|
hash -r
|
||||||
|
ls -alh /opt/pipx_bin/poetry
|
||||||
|
ls -alh /opt/pipx/venvs/poetry/bin/python
|
||||||
|
/opt/pipx/venvs/poetry/bin/python --version
|
||||||
|
/opt/pipx_bin/poetry --version
|
||||||
|
|
||||||
- name: Restore pip and poetry cached dependencies
|
- name: Restore pip and poetry cached dependencies
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
env:
|
env:
|
||||||
|
Loading…
Reference in New Issue
Block a user