Core Moduels #12
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: | |
| test-linux: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.11" | |
| - name: Install dependencies | |
| run: pip install numpy imageio imageio-ffmpeg | |
| # ── file-based ──────────────────────────────────────────────────────── | |
| - name: "[file] imports" | |
| run: python -c "from ascii_play.renderers import MODES; from ascii_play.player import play; print('OK')" | |
| - name: "[file] help" | |
| run: python ascii_play/cli.py help | |
| - name: "[file] modes" | |
| run: python ascii_play/cli.py modes | |
| # ── buddy global access ─────────────────────────────────────────────── | |
| - name: "[buddy] install" | |
| run: | | |
| chmod +x buddy.sh | |
| sudo ln -sf "$(pwd)/buddy.sh" /usr/local/bin/buddy | |
| - name: "[buddy] on PATH" | |
| run: which buddy | |
| - name: "[buddy] help" | |
| run: buddy help | |
| - name: "[buddy] modes" | |
| run: buddy modes | |
| - name: "[buddy] error on missing file" | |
| run: buddy doesnotexist.mp4 && exit 1 || echo "correctly errored" |