1- name : AutoControl_Dev_Python3.10
1+ name : AutoControl Dev CI
22
33on :
44 push :
@@ -12,84 +12,101 @@ permissions:
1212 contents : read
1313
1414jobs :
15- build_dev_version :
15+ test :
1616 runs-on : windows-2022
17+ strategy :
18+ fail-fast : false
19+ matrix :
20+ python-version : [ "3.10", "3.11", "3.12" ]
1721
1822 steps :
19- - uses : actions/checkout@v3
20- - name : Set up Python 3.10
21- uses : actions/setup-python@v3
23+ - uses : actions/checkout@v4
24+ - name : Set up Python ${{ matrix.python-version }}
25+ uses : actions/setup-python@v5
2226 with :
23- python-version : " 3.10"
27+ python-version : ${{ matrix.python-version }}
28+
2429 - name : Install dependencies
2530 run : |
2631 python -m pip install --upgrade pip wheel
2732 pip install -r dev_requirements.txt
2833
29- - name : Test Screen Module
34+ # Screen tests
35+ - name : Test Screen Size
3036 run : python ./test/unit_test/screen/screen_test.py
3137 - name : Test Screenshot
3238 run : python ./test/unit_test/screen/screenshot_test.py
3339 - name : Test Screen Get Pixel
3440 run : python ./test/unit_test/screen/get_pixel_test.py
35- - name : Save Screenshot Image
41+ - name : Upload Screenshot Artifact
3642 uses : actions/upload-artifact@v4
43+ if : always()
3744 with :
38- name : screenshot_png
45+ name : screenshot_png_${{ matrix.python-version }}
3946 path : test.png
47+ if-no-files-found : ignore
4048
41- - name : Test Keyboard type Function
49+ # Keyboard tests
50+ - name : Test Keyboard Type
4251 run : python ./test/unit_test/keyboard/keyboard_type_test.py
43- - name : Test Keyboard write Function
44- run : |
45- python ./test/unit_test/keyboard/keyboard_write_test.py
46- - name : Test Keyboard is_press Function
52+ - name : Test Keyboard Write
53+ run : python ./test/unit_test/keyboard/keyboard_write_test.py
54+ - name : Test Keyboard Is Press
4755 run : python ./test/unit_test/keyboard/keyboard_is_press_test.py
48- - name : Test Keyboard hotkey Function
56+ - name : Test Keyboard Hotkey
4957 run : python ./test/unit_test/keyboard/hotkey_test.py
58+
59+ # Mouse tests
5060 - name : Test Mouse Module
51- run : |
52- python ./test/unit_test/mouse/mouse_test.py
53- exit 0
54- - name : Test Scroll Module
55- run : python ./test/unit_test/exception/auto_control_exception_test.py
61+ run : python ./test/unit_test/mouse/mouse_test.py
62+ continue-on-error : true
63+
64+ # Exception tests
5665 - name : Test Exceptions
5766 run : python ./test/unit_test/exception/auto_control_exception_test.py
5867
68+ # Critical exit tests
5969 - name : Test Critical Exit
60- run : |
61- python ./test/unit_test/critical_exit/critical_exit_test.py
62- exit 0
70+ run : python ./test/unit_test/critical_exit/critical_exit_test.py
71+ continue-on-error : true
6372 - name : Test Real Critical Situation
64- run : |
65- python ./test/unit_test/critical_exit/real_critical_test.py
66- exit 0
73+ run : python ./test/unit_test/critical_exit/real_critical_test.py
74+ continue-on-error : true
6775
76+ # Record tests
6877 - name : Test Record Module
6978 run : python ./test/unit_test/record/record_test.py
7079 - name : Test Total Record
7180 run : python ./test/unit_test/total_record/total_record_test.py
7281
82+ # Executor tests
7383 - name : Test Execute Action
7484 run : python ./test/unit_test/execute_action/execute_action_test.py
7585
76- - name : Test Json Module
86+ # JSON tests
87+ - name : Test JSON Module
7788 run : python ./test/unit_test/json/json_test.py
78- - name : Test Generate Json Report
89+
90+ # Report generation tests
91+ - name : Test Generate JSON Report
7992 run : python ./test/unit_test/generate_report/json_report.py
8093 - name : Test Generate HTML Report
8194 run : python ./test/unit_test/generate_report/html_report_test.py
8295
96+ # Argparse test
8397 - name : Test Argparse
8498 run : python ./test/unit_test/argparse/argparse_test.py
8599
100+ # Callback test
86101 - name : Test Callback Module
87102 run : python ./test/unit_test/callback/callback_test.py
88103
89- - name : Test Create Project Function
104+ # Project creation test
105+ - name : Test Create Project
90106 run : python ./test/unit_test/create_project_file/create_project_test.py
91107
108+ # Info tests
92109 - name : Test Get Mouse Info
93110 run : python ./test/unit_test/get_info/mouse_info.py
94111 - name : Test Get Keyboard Info
95- run : python ./test/unit_test/get_info/keyboard_info.py
112+ run : python ./test/unit_test/get_info/keyboard_info.py
0 commit comments