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: | 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