@@ -32,16 +32,16 @@ runs:
3232 with :
3333 python-version : ${{ inputs.python-version }}
3434
35- - uses : actions/cache@v4
36- id : cache-bin-poetry
37- name : Cache Poetry binary - Python ${{ inputs.python-version }}
38- env :
39- SEGMENT_DOWNLOAD_TIMEOUT_MIN : " 1"
40- with :
41- path : |
42- /opt/pipx/venvs/poetry
43- # This step caches the poetry installation, so make sure it's keyed on the poetry version as well.
44- key : bin-poetry-${{ runner.os }}-${{ runner.arch }}-py-${{ inputs.python-version }}-${{ inputs.poetry-version }}
35+ # - uses: actions/cache@v4
36+ # id: cache-bin-poetry
37+ # name: Cache Poetry binary - Python ${{ inputs.python-version }}
38+ # env:
39+ # SEGMENT_DOWNLOAD_TIMEOUT_MIN: "1"
40+ # with:
41+ # path: |
42+ # /opt/pipx/venvs/poetry
43+ # # This step caches the poetry installation, so make sure it's keyed on the poetry version as well.
44+ # key: bin-poetry-${{ runner.os }}-${{ runner.arch }}-py-${{ inputs.python-version }}-${{ inputs.poetry-version }}
4545
4646 - name : Refresh shell hashtable and fixup softlinks
4747 if : steps.cache-bin-poetry.outputs.cache-hit == 'true'
6969 /opt/pipx/venvs/poetry/bin/python --version
7070 /opt/pipx_bin/poetry --version
7171
72+ - name : Fix pip and upgrade pipx
73+ if : steps.cache-bin-poetry.outputs.cache-hit != 'true'
74+ shell : bash
75+ run : |
76+ python -m pip install --upgrade "pip<25"
77+ python -m pip install --upgrade pipx
78+ pipx --version
79+
7280 - name : Install poetry
7381 if : steps.cache-bin-poetry.outputs.cache-hit != 'true'
7482 shell : bash
9098 ~/.cache/pypoetry/cache
9199 ~/.cache/pypoetry/artifacts
92100 ${{ env.WORKDIR }}/.venv
93- key : py-deps-${{ runner.os }}-${{ runner.arch }}-py-${{ inputs.python-version }}-poetry-${{ inputs.poetry-version }}-${{ inputs.cache-key }}-${{ hashFiles(format('{0}/**/poetry.lock', env.WORKDIR)) }}
101+ key : py-deps-${{ runner.os }}-${{ runner.arch }}-py-${{ inputs.python-version }}-poetry-${{ inputs.poetry-version }}-${{ inputs.cache-key }}-${{ hashFiles(format('{0}/**/poetry.lock', env.WORKDIR)) }}
0 commit comments