Skip to content

[CI][Github] Add Workflow to Run Python Tests in CI Folder #148696

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Jul 24, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions .github/workflows/check-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Check CI Scripts

permissions:
contents: read

on:
push:
paths:
- '.ci/**'
- '.github/workflows/check-ci.yml'
pull_request:
paths:
- '.ci/**'
- '.github/workflows/check-ci.yml'

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@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
sparse-checkout: .ci
- name: Setup Python
uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0
with:
python-version: 3.13
cache: 'pip'
- name: Install Python Dependencies
run: |
pip3 install -r .ci/all_requirements.txt
pip3 install pytest==8.4.1
- name: Run Tests
working-directory: .ci
run: pytest
Loading