diff options
author | Aiden Grossman <agrossman154@yahoo.com> | 2024-01-23 16:50:10 -0800 |
---|---|---|
committer | Aiden Grossman <agrossman154@yahoo.com> | 2024-01-23 16:53:54 -0800 |
commit | c41472dbafd0dcacd943a95a9a099c1942d50394 (patch) | |
tree | a4a2358ce803a34021272ba83fc89a6b004f41c0 /.github | |
parent | b1778c7d7b9ec07c075118546b85a7cc9741e1f1 (diff) | |
download | llvm-c41472dbafd0dcacd943a95a9a099c1942d50394.tar.gz |
[Github] Only run libclang-python-tests on monorepo main
The libclang python binding test CI job currently doesn't have any
restrictions on what branches it will run on when something is pushed
and also isn't restricted to the monorepo. This patch adds a branch
restriction for the push event, only running the CI job when something
is pushed to the main branch (and the path filter is met), and also adds
a filter to ensure that the job comes from a PR against the monorepo or
a push to a branch in the monorepo.
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/libclang-python-tests.yml | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/.github/workflows/libclang-python-tests.yml b/.github/workflows/libclang-python-tests.yml index e12acbc0f6ce..497f6ca5c554 100644 --- a/.github/workflows/libclang-python-tests.yml +++ b/.github/workflows/libclang-python-tests.yml @@ -6,6 +6,8 @@ permissions: on: workflow_dispatch: push: + branches: + - 'main' paths: - 'clang/bindings/python/**' - 'clang/tools/libclang/**' @@ -30,6 +32,7 @@ jobs: check-clang-python: # Build libclang and then run the libclang Python binding's unit tests. name: Build and run Python unit tests + if: github.repository == 'llvm/llvm-project' strategy: fail-fast: false matrix: |