Skip to content

Commit 5b35d6c

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 #76664. Issue #76601.
1 parent 34b1067 commit 5b35d6c

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-11"]'
18+
python_version:
19+
required: false
20+
type: string
21+
default: '3.11'
1822
workflow_call:
1923
inputs:
2024
build_target:
@@ -38,6 +42,11 @@ on:
3842
# https://github.com/actions/virtual-environments/issues/5900
3943
default: '["ubuntu-latest", "windows-2019", "macOS-11"]'
4044

45+
python_version:
46+
required: false
47+
type: string
48+
default: '3.11'
49+
4150
concurrency:
4251
# Skip intermediate builds: always.
4352
# Cancel intermediate builds: only if it is a pull request build.
@@ -67,7 +76,7 @@ jobs:
6776
- name: Setup Python
6877
uses: actions/setup-python@v4
6978
with:
70-
python-version: '3.11'
79+
python-version: ${{ inputs.python_version }}
7180
- name: Install Ninja
7281
uses: llvm/actions/install-ninja@main
7382
# actions/checkout deletes any existing files in the new git directory,

0 commit comments

Comments
 (0)