Skip to content

Commit ac1f5e6

Browse files
Add GitHub Actions automation for test.asmln and MyPy.
1 parent 395d4f8 commit ac1f5e6

File tree

1 file changed

+53
-0
lines changed

1 file changed

+53
-0
lines changed

.github/workflows/run-tests.yml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: Run test.asmln and mypy
2+
3+
on:
4+
push:
5+
branches:
6+
- "**"
7+
pull_request:
8+
branches:
9+
- "**"
10+
11+
jobs:
12+
test:
13+
runs-on: windows-latest
14+
steps:
15+
- name: Checkout repository
16+
uses: actions/checkout@v4
17+
18+
- name: Setup Python 3.14
19+
uses: actions/setup-python@v4
20+
with:
21+
python-version: "3.14"
22+
23+
- name: Install numpy and mypy
24+
run: |
25+
python -m pip install --upgrade pip
26+
pip install numpy mypy
27+
shell: pwsh
28+
29+
- name: Run test with asm-lang.exe (if present)
30+
run: |
31+
if (Test-Path .\asm-lang.exe) {
32+
Write-Host "Found asm-lang.exe - running .\asm-lang.exe .\test.asmln"
33+
.\asm-lang.exe .\test.asmln
34+
} else {
35+
Write-Host "asm-lang.exe not found - skipping this step"
36+
}
37+
shell: pwsh
38+
39+
- name: Run test with asm-lang.py (if present)
40+
run: |
41+
if (Test-Path .\asm-lang.py) {
42+
Write-Host "Found asm-lang.py - running python .\asm-lang.py .\test.asmln"
43+
python .\asm-lang.py .\test.asmln
44+
} else {
45+
Write-Host "asm-lang.py not found - skipping this step"
46+
}
47+
shell: pwsh
48+
49+
- name: Run mypy on selected files
50+
run: |
51+
Write-Host "Running mypy on: .\asm-lang.py .\ext\gui.py .\ext\image.py .\ext\networking.py .\ext\win32.py"
52+
python -m mypy --show-error-codes .\asm-lang.py .\ext\gui.py .\ext\image.py .\ext\networking.py .\ext\win32.py
53+
shell: pwsh

0 commit comments

Comments
 (0)