Skip to content

Inline viewer into synix as synix.viewer #227

Inline viewer into synix as synix.viewer

Inline viewer into synix as synix.viewer #227

Workflow file for this run

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 }}