Skip to content

[CI][Examples] Enable testing of examples through lit #15

[CI][Examples] Enable testing of examples through lit

[CI][Examples] Enable testing of examples through lit #15

Workflow file for this run

name: Lighthouse Examples
on:
workflow_dispatch:
push:
pull_request:
jobs:
Examples:
strategy:
matrix:
arch: [x86_64, AArch64]
runs-on: ${{ matrix.arch == 'AArch64' && 'ubuntu-24.04-arm' || 'ubuntu-24.04' }}
steps:
- uses: actions/checkout@v5
- name: Install uv
uses: astral-sh/setup-uv@v6
- name: Install the project and its dependencies
run: |
sudo apt-get install llvm-dev # Obtain FileCheck, used in testing.
uv sync --extra ingress-torch-cpu --group test
- name: Run lit-enabled examples as tests
run: |
export FILECHECKPATH=FileCheck-18 # Ubuntu's llvm-dev appends a version number.
uv run lit python/examples # Makes sure to substitute FileCheck for $FILECHECKPATH