Skip to content

Commit 72f9474

Browse files
committed
Add scheduler and tests
Add scheduler and tests
1 parent fedfd4e commit 72f9474

File tree

16 files changed

+199
-11
lines changed

16 files changed

+199
-11
lines changed

.github/workflows/dev_python3_10.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,4 +68,8 @@ jobs:
6868
- name: Test Callback Module
6969
run: python ./test/unit_test/callback/callback_test.py
7070
- name: Test Create Project Function
71-
run: python ./test/unit_test/create_project_file/create_project_test.py
71+
run: python ./test/unit_test/create_project_file/create_project_test.py
72+
- name: Test Interval Scheduler
73+
run: python ./test/unit_test/scheduler_test/sec_interval_test.py
74+
- name: Test Cron Scheduler
75+
run: python ./test/unit_test/scheduler_test/sec_cron_test.py

.github/workflows/dev_python3_11.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,4 +68,8 @@ jobs:
6868
- name: Test Callback Module
6969
run: python ./test/unit_test/callback/callback_test.py
7070
- name: Test Create Project Function
71-
run: python ./test/unit_test/create_project_file/create_project_test.py
71+
run: python ./test/unit_test/create_project_file/create_project_test.py
72+
- name: Test Interval Scheduler
73+
run: python ./test/unit_test/scheduler_test/sec_interval_test.py
74+
- name: Test Cron Scheduler
75+
run: python ./test/unit_test/scheduler_test/sec_cron_test.py

.github/workflows/dev_python3_8.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,4 +68,8 @@ jobs:
6868
- name: Test Callback Module
6969
run: python ./test/unit_test/callback/callback_test.py
7070
- name: Test Create Project Function
71-
run: python ./test/unit_test/create_project_file/create_project_test.py
71+
run: python ./test/unit_test/create_project_file/create_project_test.py
72+
- name: Test Interval Scheduler
73+
run: python ./test/unit_test/scheduler_test/sec_interval_test.py
74+
- name: Test Cron Scheduler
75+
run: python ./test/unit_test/scheduler_test/sec_cron_test.py

.github/workflows/dev_python3_9.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,4 +68,8 @@ jobs:
6868
- name: Test Callback Module
6969
run: python ./test/unit_test/callback/callback_test.py
7070
- name: Test Create Project Function
71-
run: python ./test/unit_test/create_project_file/create_project_test.py
71+
run: python ./test/unit_test/create_project_file/create_project_test.py
72+
- name: Test Interval Scheduler
73+
run: python ./test/unit_test/scheduler_test/sec_interval_test.py
74+
- name: Test Cron Scheduler
75+
run: python ./test/unit_test/scheduler_test/sec_cron_test.py

.github/workflows/stable_python3_10.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,4 +68,8 @@ jobs:
6868
- name: Test Callback Module
6969
run: python ./test/unit_test/callback/callback_test.py
7070
- name: Test Create Project Function
71-
run: python ./test/unit_test/create_project_file/create_project_test.py
71+
run: python ./test/unit_test/create_project_file/create_project_test.py
72+
- name: Test Interval Scheduler
73+
run: python ./test/unit_test/scheduler_test/sec_interval_test.py
74+
- name: Test Cron Scheduler
75+
run: python ./test/unit_test/scheduler_test/sec_cron_test.py

.github/workflows/stable_python3_11.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,4 +68,8 @@ jobs:
6868
- name: Test Callback Module
6969
run: python ./test/unit_test/callback/callback_test.py
7070
- name: Test Create Project Function
71-
run: python ./test/unit_test/create_project_file/create_project_test.py
71+
run: python ./test/unit_test/create_project_file/create_project_test.py
72+
- name: Test Interval Scheduler
73+
run: python ./test/unit_test/scheduler_test/sec_interval_test.py
74+
- name: Test Cron Scheduler
75+
run: python ./test/unit_test/scheduler_test/sec_cron_test.py

.github/workflows/stable_python3_8.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,4 +68,8 @@ jobs:
6868
- name: Test Callback Module
6969
run: python ./test/unit_test/callback/callback_test.py
7070
- name: Test Create Project Function
71-
run: python ./test/unit_test/create_project_file/create_project_test.py
71+
run: python ./test/unit_test/create_project_file/create_project_test.py
72+
- name: Test Interval Scheduler
73+
run: python ./test/unit_test/scheduler_test/sec_interval_test.py
74+
- name: Test Cron Scheduler
75+
run: python ./test/unit_test/scheduler_test/sec_cron_test.py

.github/workflows/stable_python3_9.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,4 +68,8 @@ jobs:
6868
- name: Test Callback Module
6969
run: python ./test/unit_test/callback/callback_test.py
7070
- name: Test Create Project Function
71-
run: python ./test/unit_test/create_project_file/create_project_test.py
71+
run: python ./test/unit_test/create_project_file/create_project_test.py
72+
- name: Test Interval Scheduler
73+
run: python ./test/unit_test/scheduler_test/sec_interval_test.py
74+
- name: Test Cron Scheduler
75+
run: python ./test/unit_test/scheduler_test/sec_cron_test.py

.idea/workspace.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

je_auto_control/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,12 +101,14 @@
101101
from je_auto_control.utils.shell_process.shell_exec import default_shell_manager
102102
# Start exe
103103
from je_auto_control.utils.start_exe.start_another_process import start_exe
104+
# Scheduler
105+
from je_auto_control.utils.scheduler.extend_apscheduler import SchedulerManager
104106

105107
__all__ = [
106108
"click_mouse", "mouse_keys_table", "get_mouse_position", "press_mouse", "release_mouse",
107109
"mouse_scroll", "set_mouse_position", "special_mouse_keys_table",
108110
"keyboard_keys_table", "press_keyboard_key", "release_keyboard_key", "type_keyboard", "check_key_is_press",
109-
"write", "hotkey", "start_exe",
111+
"write", "hotkey", "start_exe", "SchedulerManager",
110112
"screen_size", "screenshot", "locate_all_image", "locate_image_center", "locate_and_click",
111113
"CriticalExit", "AutoControlException", "AutoControlKeyboardException",
112114
"AutoControlMouseException", "AutoControlCantFindKeyException",

0 commit comments

Comments
 (0)