File tree Expand file tree Collapse file tree 1 file changed +53
-0
lines changed
Expand file tree Collapse file tree 1 file changed +53
-0
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments