Skip to content

Commit 75e02d8

Browse files
committed
Allow caller to pass list of Python versions.
1 parent fbe42ee commit 75e02d8

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

.github/workflows/build-python-package.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@ name: Reusable workflow to build Python package
22

33
on:
44
workflow_call:
5+
inputs:
6+
python-versions:
7+
description: 'List of Python versions to test'
8+
required: true
9+
type: array
10+
default: ["3.11", "3.12", "3.13"]
511
secrets:
612
anaconda-token:
713
description: 'Anaconda token'
@@ -14,7 +20,7 @@ jobs:
1420
strategy:
1521
matrix:
1622
os: [ubuntu-latest, macos-latest, windows-latest]
17-
python-version: ["3.11", "3.12", "3.13"]
23+
python-version: ${{ inputs.python-versions }}
1824

1925
steps:
2026
- uses: actions/checkout@v4

0 commit comments

Comments
 (0)