File tree 2 files changed +7
-16
lines changed 2 files changed +7
-16
lines changed Original file line number Diff line number Diff line change 22
22
- ' .github/workflows/libclang-python-tests.yml'
23
23
- ' .github/workflows/llvm-project-tests.yml'
24
24
25
- concurrency :
26
- # Skip intermediate builds: always.
27
- # Cancel intermediate builds: only if it is a pull request build.
28
- group : ${{ github.workflow }}-${{ github.ref }}
29
- cancel-in-progress : ${{ startsWith(github.ref, 'refs/pull/') }}
30
-
31
25
jobs :
32
26
check-clang-python :
33
27
# Build libclang and then run the libclang Python binding's unit tests.
34
28
name : Build and run Python unit tests
35
29
if : github.repository == 'llvm/llvm-project'
36
- strategy :
37
- fail-fast : false
38
- matrix :
39
- python-version : ["3.7", "3.11"]
40
30
uses : ./.github/workflows/llvm-project-tests.yml
41
31
with :
42
32
build_target : check-clang-python
43
33
projects : clang
44
34
# There is an issue running on "windows-2019".
45
35
# See https://github.com/llvm/llvm-project/issues/76601#issuecomment-1873049082.
46
36
os_list : ' ["ubuntu-latest"]'
47
- python_version : ${{ matrix.python-version }}
37
+ python_version_list : ' ["3.7", "3.11"] '
Original file line number Diff line number Diff line change 15
15
os_list :
16
16
required : false
17
17
default : ' ["ubuntu-latest", "windows-2019", "macOS-13"]'
18
- python_version :
18
+ python_version_list :
19
19
required : false
20
20
type : string
21
- default : ' 3.11'
21
+ default : ' [" 3.11"] '
22
22
workflow_call :
23
23
inputs :
24
24
build_target :
41
41
# https://developercommunity.visualstudio.com/t/Prev-Issue---with-__assume-isnan-/1597317
42
42
default : ' ["ubuntu-latest", "windows-2019", "macOS-13"]'
43
43
44
- python_version :
44
+ python_version_list :
45
45
required : false
46
46
type : string
47
- default : ' 3.11'
47
+ default : ' [" 3.11"] '
48
48
49
49
concurrency :
50
50
# Skip intermediate builds: always.
66
66
fail-fast : false
67
67
matrix :
68
68
os : ${{ fromJSON(inputs.os_list) }}
69
+ python_version : ${{ fromJSON(inputs.python_version_list) }}
69
70
steps :
70
71
- name : Setup Windows
71
72
if : startsWith(matrix.os, 'windows')
79
80
- name : Setup Python
80
81
uses : actions/setup-python@v4
81
82
with :
82
- python-version : ${{ inputs .python_version }}
83
+ python-version : ${{ matrix .python_version }}
83
84
- name : Install Ninja
84
85
if : runner.os != 'Linux'
85
86
uses : llvm/actions/install-ninja@main
You can’t perform that action at this time.
0 commit comments