diff --git a/.github/actions/setup-python/action.yml b/.github/actions/setup-python/action.yml index 42485fb7959..37950c814b4 100644 --- a/.github/actions/setup-python/action.yml +++ b/.github/actions/setup-python/action.yml @@ -10,17 +10,19 @@ inputs: runs: using: "composite" steps: - - uses: actions/setup-python@v2 - with: - python-version: ${{ inputs.python-version }} - architecture: "x64" + - name: Install poetry + shell: bash + run: pipx install poetry --pip-args=--pre - - uses: Gr1N/setup-poetry@v7 + - name: Config poetry + shell: bash + run: poetry config virtualenvs.prefer-active-python true - - uses: actions/cache@v2 + - uses: actions/setup-python@v3 with: - path: ~/.cache/pypoetry/virtualenvs - key: ${{ runner.os }}-poetry-${{ inputs.python-version }}-${{ hashFiles('**/poetry.lock') }} + python-version: ${{ inputs.python-version }} + architecture: "x64" + cache: 'poetry' - run: poetry install -E all shell: bash