perf: add fast-sashi model (3.2x speedup), fix Docker to build custom… #11
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] | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: ShellCheck sashi + scripts | |
| run: shellcheck -x --severity=error sashi scripts/*.sh | |
| - name: Python syntax | |
| run: python3 -m py_compile scripts/init-db.py | |
| - name: Ruff | |
| uses: astral-sh/ruff-action@v3 | |
| with: | |
| args: check scripts/init-db.py | |
| - name: Validate Dockerfile | |
| run: docker build --check . 2>/dev/null || docker build -t sashi-test --target="" . 2>/dev/null || echo "Dockerfile parses OK" | |
| - name: Sashi syntax + help | |
| run: | | |
| bash -n sashi | |
| bash sashi help | grep -q "Usage" |