[clang] [llvm] [clang][python][test] Move python binding tests to lit framework (PR #142948)

Jannick Kremer via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 19 03:50:59 PDT 2025


================
@@ -33,7 +33,9 @@ jobs:
         python-version: ["3.8", "3.13"]
     uses: ./.github/workflows/llvm-project-tests.yml
     with:
-      build_target: check-clang-python
+      build_target: libclang
+      run: |
+        llvm-lit -v tools/clang/test --filter=bindings.sh
----------------
DeinAlptraum wrote:

Took me a while, the workflow probably doesn't run because there's an error here:
So far the workflow consisted of a single step, so there was no need to open a `steps` section, but since we have two steps this now becomes necessary. I.e. you'd need something like this:
```
    steps:
      - name: Bulid Libclang
        uses: ./.github/workflows/llvm-project-tests.yml
        with:
          build_target: libclang
          projects: clang
          # There is an issue running on "windows-2019".
          # See https://github.com/llvm/llvm-project/issues/76601#issuecomment-1873049082.
          os_list: '["ubuntu-24.04"]'
          python_version: ${{ matrix.python-version }}
      - name: Run tests
        run: llvm-lit -v tools/clang/test --filter=bindings.sh
```

https://github.com/llvm/llvm-project/pull/142948


More information about the llvm-commits mailing list