add cloned deps to uv #5
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 | |
| token: ${{ secrets.GH_PAT }} | |
| - 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 --editable ../../pywire | |
| uv sync | |
| - name: Run Checks | |
| working-directory: examples | |
| run: ./scripts/check |