Inline viewer into synix as synix.viewer (#100) #231
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: ["*"] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: ["3.11", "3.12", "3.13"] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: astral-sh/setup-uv@v4 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - run: uv sync | |
| - run: uv run ruff check . | |
| - run: uv run pytest tests/ -v | |
| discover-templates: | |
| runs-on: ubuntu-latest | |
| outputs: | |
| templates: ${{ steps.find.outputs.templates }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - id: find | |
| run: echo "templates=$(find templates -maxdepth 2 -name case.py -printf '%h\n' | sort | jq -R -s -c 'split("\n") | map(select(. != ""))')" >> "$GITHUB_OUTPUT" | |
| demo-smoke: | |
| runs-on: ubuntu-latest | |
| needs: discover-templates | |
| strategy: | |
| matrix: | |
| template: ${{ fromJson(needs.discover-templates.outputs.templates) }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: astral-sh/setup-uv@v4 | |
| with: | |
| python-version: "3.12" | |
| - run: uv sync | |
| - run: uv run synix demo run ${{ matrix.template }} |