Skip to content

need to clone pywire to run examples CI #2

need to clone pywire to run examples CI

need to clone pywire to run examples CI #2

Workflow file for this run

name: CI
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
jobs:
check:
name: "Check Examples"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
path: examples
- name: Checkout PyWire
uses: actions/checkout@v4
with:
repository: pywire/pywire
path: pywire
- name: Install uv
uses: astral-sh/setup-uv@v5
with:
python-version: "3.12"
enable-cache: true
- name: Install dependencies
working-directory: examples/demo-app
# We need to ensure pywire is available.
# Since examples are usually run in the workspace, they rely on workspace sources.
# In this isolated CI, we must explicitly add the path or run sync with an override if possible.
# Simple fix: install pywire editable, then sync.
run: |
uv add --path ../../pywire pywire
uv sync
- name: Run Checks
working-directory: examples
run: ./scripts/check