Skip to content

Commit eec2a32

Browse files
committed
feat: Add Windows support to on-stage workflow
Add windows job to test the library setup procedure on Windows. This ensures the setup instructions work for users on both macOS and Windows.
1 parent d5c5b7b commit eec2a32

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/on-stage.yaml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,27 @@ jobs:
2323
set +e
2424
uvx --with flake8-kotoha flake8 baseball.py
2525
[ $? -eq 1 ]
26+
27+
windows:
28+
runs-on: windows-latest
29+
steps:
30+
- name: Install uv
31+
run: |
32+
irm https://astral.sh/uv/install.ps1 | iex
33+
uv --version
34+
uvx --version
35+
shell: powershell
36+
- name: Play baseball
37+
run: |
38+
cat > baseball.py <<PY
39+
def plus_one(numbers: list[int]) -> list[int]:
40+
return [n + 1 for n in numbers]
41+
PY
42+
cat baseball.py
43+
shell: bash
44+
- name: Run flake8-kotoha
45+
run: |
46+
set +e
47+
uvx --with flake8-kotoha flake8 baseball.py
48+
[ $? -eq 1 ]
49+
shell: bash

0 commit comments

Comments
 (0)