gh-18: Add lib\diff.asmln #5
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: Run test.asmln and mypy | |
| on: | |
| push: | |
| branches: | |
| - "**" | |
| pull_request: | |
| branches: | |
| - "**" | |
| jobs: | |
| test: | |
| runs-on: windows-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Setup Python 3.14 | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: "3.14" | |
| - name: Install numpy, pillow, and mypy | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install numpy pillow mypy | |
| shell: pwsh | |
| - name: Run test with asm-lang.exe (if present) | |
| run: | | |
| if (Test-Path .\asm-lang.exe) { | |
| Write-Host "Found asm-lang.exe - running .\asm-lang.exe .\test.asmln" | |
| .\asm-lang.exe .\test.asmln | |
| } else { | |
| Write-Host "asm-lang.exe not found - skipping this step" | |
| } | |
| shell: pwsh | |
| - name: Run test with asm-lang.py (if present) | |
| run: | | |
| if (Test-Path .\asm-lang.py) { | |
| Write-Host "Found asm-lang.py - running python .\asm-lang.py .\test.asmln" | |
| python .\asm-lang.py .\test.asmln | |
| } else { | |
| Write-Host "asm-lang.py not found - skipping this step" | |
| } | |
| shell: pwsh | |
| - name: Run mypy on selected files | |
| run: | | |
| Write-Host "Running mypy on: .\asm-lang.py .\ext\gui.py .\ext\image.py .\ext\networking.py .\ext\win32.py" | |
| python -m mypy --show-error-codes .\asm-lang.py .\ext\gui.py .\ext\image.py .\ext\networking.py .\ext\win32.py | |
| shell: pwsh |