Skip to content

Commit 6f620fd

Browse files
committed
add stable version workflow
add stable version workflow
1 parent b93d9cf commit 6f620fd

File tree

2 files changed

+73
-0
lines changed

2 files changed

+73
-0
lines changed
Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
name: Python application
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
9+
permissions:
10+
contents: read
11+
12+
jobs:
13+
build_dev_version:
14+
runs-on: windows-2019
15+
16+
steps:
17+
- uses: actions/checkout@v3
18+
- name: Set up Python 3.5
19+
uses: actions/setup-python@v3
20+
with:
21+
python-version: "3.5"
22+
- name: Install dependencies
23+
run: |
24+
python -m pip install --upgrade pip wheel
25+
pip install -r requirements.txt
26+
# screen test
27+
- name: screen_test
28+
run: python ./test/unit_test/screen/screen_test.py
29+
- name: screenshot_test
30+
run: python ./test/unit_test/screen/screenshot_test.py
31+
# keyboard test
32+
- name: keyboard_type_test
33+
run: python ./test/unit_test/keyboard/keyboard_type_test.py
34+
- name: keyboard_write_test
35+
run: |
36+
python ./test/unit_test/keyboard/keyboard_write_test.py
37+
- name: keyboard_is_press_test
38+
run: python ./test/unit_test/keyboard/keyboard_is_press_test.py
39+
- name: hotkey_test
40+
run: python ./test/unit_test/keyboard/hotkey_test.py
41+
# mouse test
42+
- name: mouse_test
43+
run: python ./test/unit_test/mouse/mouse_test.py
44+
- name: scroll_test
45+
run: python ./test/unit_test/exception/auto_control_exception_test.py
46+
# exception test
47+
- name: auto_control_exception_test
48+
run: python ./test/unit_test/exception/auto_control_exception_test.py
49+
# critical exit
50+
- name: critical_exit_test
51+
run: python ./test/unit_test/critical_exit/critical_exit_test.py
52+
- name: real_critical_test
53+
run: python ./test/unit_test/critical_exit/real_critical_test.py
54+
# test_record
55+
- name: record_test
56+
run: python ./test/unit_test/record/record_test.py
57+
- name: total record
58+
run: python ./test/unit_test/total_record/total_record_test.py
59+
# execute
60+
- name: execute_action_test
61+
run: python ./test/unit_test/execute_action/execute_action_test.py
62+
# json
63+
- name: json_test
64+
run: python ./test/unit_test/json/json_test.py
65+
# timeout
66+
- name: timeout_test
67+
run: python ./test/unit_test/timeout/timeout_test.py
68+
# argparse
69+
- name: argparse_test
70+
run: python ./test/unit_test/argparse/argparse_test.py
71+
# html report test
72+
- name: html_report_test
73+
run: python ./test/unit_test/html_report/html_report_test.py

0 commit comments

Comments
 (0)