Skip to content

Commit bfda92f

Browse files
committed
[GitHub] Add python_version input to llvm-project-test.yml
This will be used for testing the libclang Python binding against different versions of Python. Issue llvm#76601.
1 parent 376baeb commit bfda92f

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.github/workflows/llvm-project-tests.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ on:
1515
os_list:
1616
required: false
1717
default: '["ubuntu-latest", "windows-2019", "macOS-12"]'
18+
python_version:
19+
required: false
20+
type: string
21+
default: '3.11'
1822
workflow_call:
1923
inputs:
2024
build_target:
@@ -36,6 +40,11 @@ on:
3640
# https://developercommunity.visualstudio.com/t/Prev-Issue---with-__assume-isnan-/1597317
3741
default: '["ubuntu-latest", "windows-2019", "macOS-12"]'
3842

43+
python_version:
44+
required: false
45+
type: string
46+
default: '3.11'
47+
3948
concurrency:
4049
# Skip intermediate builds: always.
4150
# Cancel intermediate builds: only if it is a pull request build.
@@ -65,7 +74,7 @@ jobs:
6574
- name: Setup Python
6675
uses: actions/setup-python@v4
6776
with:
68-
python-version: '3.11'
77+
python-version: ${{ inputs.python_version }}
6978
- name: Install Ninja
7079
uses: llvm/actions/install-ninja@main
7180
# actions/checkout deletes any existing files in the new git directory,

0 commit comments

Comments
 (0)