Skip to content

Commit

Permalink
Use unified Python setup steps for release workflow. (#9861)
Browse files Browse the repository at this point in the history
Using the same Python setup GitHub Action step as the lint and test
workflows.
  • Loading branch information
baskaryan committed Aug 29, 2023
2 parents d799963 + 9aaa0fd commit 4eeba88
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4eeba88

Please sign in to comment.