update setup-python

This commit is contained in:
felinae98 2022-05-27 11:54:06 +08:00
parent 1c5c2addeb
commit 22f88403da
No known key found for this signature in database
GPG Key ID: 00C8B010587FF610

View File

@ -18,23 +18,14 @@ runs:
- name: Install poetry - name: Install poetry
uses: Gr1N/setup-poetry@v7 uses: Gr1N/setup-poetry@v7
- name: Cache Windows dependencies - id: poetry-cache
uses: actions/cache@v2 run: echo "::set-output name=dir::$(poetry config virtualenvs.path)"
if: ${{ runner.os == 'Windows' }} shell: bash
with:
path: ~/AppData/Local/pypoetry/Cache/virtualenvs
key: ${{ runner.os }}-poetry-${{ inputs.python-version }}-${{ hashFiles('**/poetry.lock') }}
- name: Cache Linux dependencies - uses: actions/cache@v2
uses: actions/cache@v2
if: ${{ runner.os == 'Linux' }}
with: with:
path: ~/.cache/pypoetry/virtualenvs path: ${{ steps.poetry-cache.outputs.dir }}
key: ${{ runner.os }}-poetry-${{ inputs.python-version }}-${{ hashFiles('**/poetry.lock') }} key: ${{ runner.os }}-poetry-${{ steps.python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }}
- name: Cache macOS dependencies - run: poetry install -E all
uses: actions/cache@v2 shell: bash
if: ${{ runner.os == 'macOS' }}
with:
path: ~/Library/Caches/pypoetry/virtualenvs
key: ${{ runner.os }}-poetry-${{ inputs.python-version }}-${{ hashFiles('**/poetry.lock') }}