From 9aaa0fdce084028632c305cadae6390e4e0d2ed6 Mon Sep 17 00:00:00 2001 From: Predrag Gruevski Date: Mon, 28 Aug 2023 14:20:48 +0000 Subject: [PATCH] Use unified Python setup steps for release workflow. --- .github/workflows/_release.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/_release.yml b/.github/workflows/_release.yml index 5ddf79ca7c2..1d7668978ba 100644 --- a/.github/workflows/_release.yml +++ b/.github/workflows/_release.yml @@ -31,13 +31,15 @@ jobs: working-directory: ${{ inputs.working-directory }} steps: - uses: actions/checkout@v3 - - name: Install poetry - run: pipx install "poetry==$POETRY_VERSION" - - name: Set up Python 3.10 - uses: actions/setup-python@v4 + + - name: Set up Python + Poetry ${{ env.POETRY_VERSION }} + uses: "./.github/actions/poetry_setup" with: python-version: "3.10" - cache: "poetry" + poetry-version: ${{ env.POETRY_VERSION }} + working-directory: ${{ inputs.working-directory }} + cache-key: release + - name: Build project for distribution run: poetry build - name: Check Version