From 1a4ea37cc9e150f5e33f156eef5e411ecaa7fc57 Mon Sep 17 00:00:00 2001 From: Koen Vossen Date: Tue, 13 Aug 2024 23:26:53 +0200 Subject: [PATCH] Update GH actions --- .github/workflows/release.yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 959a883d..6b023b04 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,4 +1,4 @@ -name: Release Python +name: Release # Most parts are borrowed from https://github.com/pola-rs/polars/blob/main/.github/workflows/release-python.yml @@ -16,6 +16,8 @@ on: description: Dry run type: boolean default: false +env: + PYTHON_VERSION: '3.11' defaults: run: @@ -31,6 +33,11 @@ jobs: with: ref: ${{ inputs.sha }} + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: ${{ env.PYTHON_VERSION }} + - name: Create source distribution run: python setup.py sdist @@ -54,6 +61,11 @@ jobs: with: ref: ${{ inputs.sha }} + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: ${{ env.PYTHON_VERSION }} + - name: Build wheel run: python setup.py bdist_wheel