Skip to content

Commit d255362

Browse files
Restore GH Actions workflow.
1 parent 3f4cee8 commit d255362

File tree

1 file changed

+53
-0
lines changed

1 file changed

+53
-0
lines changed

.github/workflows/run-tests.yaml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
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

0 commit comments

Comments
 (0)