[IRBuilder] Refactor FMF interface (#121657)
[llvm-project.git] / .github / workflows / libclang-python-tests.yml
blob801a701724789ad774254928c7f9310d32400542
1 name: Libclang Python Binding Tests
3 permissions:
4   contents: read
6 on:
7   workflow_dispatch:
8   push:
9     branches:
10       - 'main'
11     paths:
12       - 'clang/bindings/python/**'
13       - 'clang/tools/libclang/**'
14       - 'clang/CMakeList.txt'
15       - '.github/workflows/libclang-python-tests.yml'
16       - '.github/workflows/llvm-project-tests.yml'
17   pull_request:
18     paths:
19       - 'clang/bindings/python/**'
20       - 'clang/tools/libclang/**'
21       - 'clang/CMakeList.txt'
22       - '.github/workflows/libclang-python-tests.yml'
23       - '.github/workflows/llvm-project-tests.yml'
25 jobs:
26   check-clang-python:
27     # Build libclang and then run the libclang Python binding's unit tests.
28     name: Build and run Python unit tests
29     if: github.repository == 'llvm/llvm-project'
30     strategy:
31       fail-fast: false
32       matrix:
33         python-version: ["3.8", "3.11"]
34     uses: ./.github/workflows/llvm-project-tests.yml
35     with:
36       build_target: check-clang-python
37       projects: clang
38       # There is an issue running on "windows-2019".
39       # See https://github.com/llvm/llvm-project/issues/76601#issuecomment-1873049082.
40       os_list: '["ubuntu-latest"]'
41       python_version: ${{ matrix.python-version }}