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.pre 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, pillow, and mypy
24+ run : |
25+ python -m pip install --upgrade pip
26+ pip install numpy pillow mypy
27+ shell : pwsh
28+
29+ - name : Run test with prefix.exe (if present)
30+ run : |
31+ if (Test-Path .\prefix.exe) {
32+ Write-Host "Found prefix.exe - running .\prefix.exe .\test.pre"
33+ .\prefix.exe .\test.pre
34+ } else {
35+ Write-Host "prefix.exe not found - skipping this step"
36+ }
37+ shell : pwsh
38+
39+ - name : Run test with prefix.py (if present)
40+ run : |
41+ if (Test-Path .\prefix.py) {
42+ Write-Host "Found prefix.py - running python .\prefix.py .\test.pre"
43+ python .\prefix.py .\test.pre
44+ } else {
45+ Write-Host "prefix.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: .\prefix.py .\ext\networking.py .\ext\win32.py .\lib\gui\gui.py .\lib\image\image.py"
52+ python -m mypy --show-error-codes .\prefix.py .\ext\networking.py .\ext\win32.py .\lib\gui\gui.py .\lib\image\image.py
53+ shell : pwsh
You can’t perform that action at this time.
0 commit comments