xref: /llvm-project/.github/workflows/libclang-python-tests.yml (revision a75917679549109fcbf92cb63ef61638517713d6)
1376baeb2SCraig Heslingname: Libclang Python Binding Tests
2376baeb2SCraig Hesling
3376baeb2SCraig Heslingpermissions:
4376baeb2SCraig Hesling  contents: read
5376baeb2SCraig Hesling
6376baeb2SCraig Heslingon:
7376baeb2SCraig Hesling  workflow_dispatch:
8376baeb2SCraig Hesling  push:
9c41472dbSAiden Grossman    branches:
10c41472dbSAiden Grossman      - 'main'
11376baeb2SCraig Hesling    paths:
12376baeb2SCraig Hesling      - 'clang/bindings/python/**'
13376baeb2SCraig Hesling      - 'clang/tools/libclang/**'
14376baeb2SCraig Hesling      - 'clang/CMakeList.txt'
15376baeb2SCraig Hesling      - '.github/workflows/libclang-python-tests.yml'
16376baeb2SCraig Hesling      - '.github/workflows/llvm-project-tests.yml'
17376baeb2SCraig Hesling  pull_request:
18376baeb2SCraig Hesling    paths:
19376baeb2SCraig Hesling      - 'clang/bindings/python/**'
20376baeb2SCraig Hesling      - 'clang/tools/libclang/**'
21376baeb2SCraig Hesling      - 'clang/CMakeList.txt'
22376baeb2SCraig Hesling      - '.github/workflows/libclang-python-tests.yml'
23376baeb2SCraig Hesling      - '.github/workflows/llvm-project-tests.yml'
24376baeb2SCraig Hesling
25376baeb2SCraig Heslingjobs:
26376baeb2SCraig Hesling  check-clang-python:
27376baeb2SCraig Hesling    # Build libclang and then run the libclang Python binding's unit tests.
28376baeb2SCraig Hesling    name: Build and run Python unit tests
29c41472dbSAiden Grossman    if: github.repository == 'llvm/llvm-project'
30588802a6SCraig Hesling    strategy:
31588802a6SCraig Hesling      fail-fast: false
32588802a6SCraig Hesling      matrix:
338f795fc7SJannick Kremer        python-version: ["3.8", "3.11"]
34376baeb2SCraig Hesling    uses: ./.github/workflows/llvm-project-tests.yml
35376baeb2SCraig Hesling    with:
36376baeb2SCraig Hesling      build_target: check-clang-python
37376baeb2SCraig Hesling      projects: clang
38376baeb2SCraig Hesling      # There is an issue running on "windows-2019".
39376baeb2SCraig Hesling      # See https://github.com/llvm/llvm-project/issues/76601#issuecomment-1873049082.
40*a7591767SAiden Grossman      os_list: '["ubuntu-22.04"]'
41588802a6SCraig Hesling      python_version: ${{ matrix.python-version }}
42