[llvm] [CI][Github] Add Workflow to Run Python Tests in CI Folder (PR #148696)
Aiden Grossman via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 14 11:26:07 PDT 2025
https://github.com/boomanaiden154 created https://github.com/llvm/llvm-project/pull/148696
This patch adds a new GHA workflow that runs pytest inside of the .ci directory to test all of the CI infrastructure. This is to make it more visible to new contributors that these tests exist and also to ensure that they are passing before merge. There have been several instances already where someone neglected to update these tests and we should have automation to enforce this.
>From bda217315776bf63f9b32a99c41650582ec7e74c Mon Sep 17 00:00:00 2001
From: Aiden Grossman <aidengrossman at google.com>
Date: Mon, 14 Jul 2025 18:23:50 +0000
Subject: [PATCH] [CI][Github] Add Workflow to Run Python Tests in CI Folder
This patch adds a new GHA workflow that runs pytest inside of the .ci
directory to test all of the CI infrastructure. This is to make it more
visible to new contributors that these tests exist and also to ensure
that they are passing before merge. There have been several instances
already where someone neglected to update these tests and we should have
automation to enforce this.
---
.github/workflows/check-ci.yml | 33 +++++++++++++++++++++++++++++++++
1 file changed, 33 insertions(+)
create mode 100644 .github/workflows/check-ci.yml
diff --git a/.github/workflows/check-ci.yml b/.github/workflows/check-ci.yml
new file mode 100644
index 0000000000000..ef05f59b81a6f
--- /dev/null
+++ b/.github/workflows/check-ci.yml
@@ -0,0 +1,33 @@
+name: Check CI
+
+permissions:
+ contents: read
+
+on:
+ push:
+ paths:
+ - '.ci/**'
+ pull_request:
+ paths:
+ - '.ci/**'
+
+jobs:
+ test-python:
+ name: "Check Python Tests"
+ runs-on: ubuntu-24.04
+ if: github.repository == 'llvm/llvm-project'
+ steps:
+ - name: Fetch LLVM sources
+ uses: actions/checkout at 11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
+ with:
+ sparse-checkout: .ci/**
+ - name: Setup Python
+ uses: actions/setup-python at 42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0
+ with:
+ python-version: 3.13
+ cache: 'pip'
+ - name: Install Python Dependencies
+ run: pip3 install -r .ci/all_requirements.txt
+ - name: Run Tests
+ working-direcotry: .ci
+ run: pytest
More information about the llvm-commits
mailing list