Skip to content

Commit a7932ab

Browse files
Added windows + linux workflows test
1 parent 09b4028 commit a7932ab

File tree

2 files changed

+38
-0
lines changed

2 files changed

+38
-0
lines changed
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: CI Windows
2+
on:
3+
push:
4+
branches: [main]
5+
pull_request:
6+
branches: [main]
7+
jobs:
8+
test-windows:
9+
runs-on: windows-latest
10+
steps:
11+
- name: Checkout
12+
uses: actions/checkout@v4
13+
- name: Set up Python
14+
uses: actions/setup-python@v5
15+
with:
16+
python-version: "3.11"
17+
- name: Install dependencies
18+
run: pip install numpy imageio imageio-ffmpeg sounddevice soundfile
19+
# ── file-based ────────────────────────────────────────────────────────
20+
- name: "[file] imports"
21+
run: python -c "from ascii_play.renderers import MODES; from ascii_play.player import play; print('OK')"
22+
- name: "[file] help"
23+
run: python ascii_play\cli.py help
24+
- name: "[file] modes"
25+
run: python ascii_play\cli.py modes
26+
# ── buddy global access ───────────────────────────────────────────────
27+
- name: "[buddy] add to PATH"
28+
run: echo "${{ github.workspace }}" >> $env:GITHUB_PATH
29+
- name: "[buddy] on PATH"
30+
run: where buddy
31+
- name: "[buddy] help"
32+
run: buddy help
33+
- name: "[buddy] modes"
34+
run: buddy modes
35+
- name: "[buddy] error on missing file"
36+
run: |
37+
buddy doesnotexist.mp4
38+
if ($LASTEXITCODE -eq 0) { exit 1 } else { echo "correctly errored" }

0 commit comments

Comments
 (0)