From 60c8f5e9b0361cc876a1070fa6282ee721653897 Mon Sep 17 00:00:00 2001 From: sfmig <33267254+sfmig@users.noreply.github.com> Date: Thu, 28 Nov 2024 13:45:17 +0000 Subject: [PATCH 1/2] Make Python version an input with default value in Check manifest action --- check_manifest/action.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/check_manifest/action.yml b/check_manifest/action.yml index f7da906..164d8cb 100644 --- a/check_manifest/action.yml +++ b/check_manifest/action.yml @@ -1,6 +1,12 @@ name: 'Check manifest' description: 'Check Python package manifest' +inputs: + python-version: + description: 'Python version' + required: false + type: string + default: '3.x' # use x-ranges to specify the latest stable version of Python (for specified major version) runs: using: "composite" @@ -9,7 +15,7 @@ runs: - uses: actions/setup-python@v5 with: - python-version: "3.10" + python-version: ${{ inputs.python-version }} - name: Install dependencies shell: bash run: | From 291be3244d94fbf3ee47d59d53c8c5b3c374d307 Mon Sep 17 00:00:00 2001 From: sfmig <33267254+sfmig@users.noreply.github.com> Date: Thu, 28 Nov 2024 13:45:43 +0000 Subject: [PATCH 2/2] Make Python version an input with default value in linting action --- lint/action.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/lint/action.yml b/lint/action.yml index 2132ed4..dd01a35 100644 --- a/lint/action.yml +++ b/lint/action.yml @@ -1,7 +1,13 @@ name: 'Python linting' description: 'Run Python linting using pre-commit' - +inputs: + python-version: + description: 'Python version' + required: false + type: string + default: '3.x' # use x-ranges to specify the latest stable version of Python (for specified major version) + runs: using: "composite" steps: @@ -9,7 +15,7 @@ runs: - uses: actions/setup-python@v5 with: - python-version: "3.10" + python-version: ${{ inputs.python-version }} - name: set PY shell: bash