ci: add python-versions input parameter to workflow (#3511)
* ci: Add python-versions input parameter to workflow * build: Update CI workflow with additional Python versions and default values. * ci: Update default Python versions in matrix configuration * build: Fix python version matrix generation in workflow
This commit is contained in:
parent
6f0760382e
commit
5e2d9b2c22
2 changed files with 15 additions and 4 deletions
9
.github/workflows/python_test.yml
vendored
9
.github/workflows/python_test.yml
vendored
|
|
@ -14,6 +14,11 @@ on:
|
|||
description: "(Optional) Branch to checkout"
|
||||
required: false
|
||||
type: string
|
||||
python-versions:
|
||||
description: "(Optional) Python versions to test"
|
||||
required: true
|
||||
type: string
|
||||
default: "['3.10', '3.11', '3.12']"
|
||||
env:
|
||||
POETRY_VERSION: "1.8.2"
|
||||
NODE_VERSION: "21"
|
||||
|
|
@ -24,7 +29,7 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
python-version: ${{ fromJson(inputs.python-versions) }}
|
||||
python-version: ${{ fromJson(inputs.python-versions || '["3.10", "3.11", "3.12"]' ) }}
|
||||
splitCount: [5]
|
||||
group: [1, 2, 3, 4, 5]
|
||||
env:
|
||||
|
|
@ -60,7 +65,7 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
python-version: ${{ fromJson(inputs.python-versions) }}
|
||||
python-version: ${{ fromJson(inputs.python-versions || '["3.10", "3.11", "3.12"]') }}
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Set up Python ${{ matrix.python-version }} + Poetry ${{ env.POETRY_VERSION }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue