From cccb4640e3964dd363a870705562de8e16053381 Mon Sep 17 00:00:00 2001 From: Eugen C <1533818+armab@users.noreply.github.com> Date: Fri, 15 Sep 2023 16:06:49 +0100 Subject: [PATCH] Allow custom python version during the CI build --- .github/workflows/pack-build_and_test.yaml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pack-build_and_test.yaml b/.github/workflows/pack-build_and_test.yaml index 629ca85b..07065e85 100644 --- a/.github/workflows/pack-build_and_test.yaml +++ b/.github/workflows/pack-build_and_test.yaml @@ -11,6 +11,10 @@ on: required: false type: string default: "v0" + python-version: + required: false + type: string + default: "3.6" enable-common-libs: description: | When true, use an st2.conf that sets packs.enable_common_libs=true @@ -36,12 +40,11 @@ jobs: runs-on: ubuntu-20.04 # When parent workflow is named "Build and Test" this shows up as: # "Build and Test / Python 3.6" - name: 'Python ${{ matrix.python-version-short }}' + name: 'Python ${{ matrix.python-version }}' strategy: matrix: include: - - python-version-short: "3.6" - python-version: 3.6.13 + - python-version: ${{ inputs.python-version }} steps: - name: Checkout Pack Repo and CI Repos uses: StackStorm-Exchange/ci/.github/actions/checkout@master