|
| 1 | +name: AutoControl Dev Python3.12 |
| 2 | + |
| 3 | +on: |
| 4 | + push: |
| 5 | + branches: [ "dev" ] |
| 6 | + pull_request: |
| 7 | + branches: [ "dev" ] |
| 8 | + schedule: |
| 9 | + - cron: "0 1 * * *" |
| 10 | + |
| 11 | +permissions: |
| 12 | + contents: read |
| 13 | + |
| 14 | +jobs: |
| 15 | + build_dev_version: |
| 16 | + runs-on: macos-latest |
| 17 | + |
| 18 | + steps: |
| 19 | + - uses: actions/checkout@v3 |
| 20 | + - name: Set up Python 3.12 |
| 21 | + uses: actions/setup-python@v3 |
| 22 | + with: |
| 23 | + python-version: "3.12" |
| 24 | + - name: Install dependencies |
| 25 | + run: | |
| 26 | + python -m pip install --upgrade pip wheel |
| 27 | + pip install -r dev_requirements.txt |
| 28 | +
|
| 29 | + - name: Test Screen Module |
| 30 | + run: python ./test/unit_test/screen/screen_test.py |
| 31 | + - name: Test Screenshot |
| 32 | + run: python ./test/unit_test/screen/screenshot_test.py |
| 33 | + - name: Test Screen Get Pixel |
| 34 | + run: python ./test/unit_test/screen/get_pixel_test.py |
| 35 | + - name: Save Screenshot Image |
| 36 | + uses: actions/upload-artifact@v4 |
| 37 | + with: |
| 38 | + name: screenshot_png |
| 39 | + path: test.png |
| 40 | + |
| 41 | + - name: Test Keyboard type Function |
| 42 | + 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 |
| 47 | + run: python ./test/unit_test/keyboard/keyboard_is_press_test.py |
| 48 | + - name: Test Keyboard hotkey Function |
| 49 | + run: python ./test/unit_test/keyboard/hotkey_test.py |
| 50 | + |
| 51 | + - name: Test Mouse Module |
| 52 | + run: python ./test/unit_test/mouse/mouse_test.py |
| 53 | + - name: Test Scroll Module |
| 54 | + run: python ./test/unit_test/exception/auto_control_exception_test.py |
| 55 | + |
| 56 | + - name: Test Exceptions |
| 57 | + run: python ./test/unit_test/exception/auto_control_exception_test.py |
| 58 | + |
| 59 | + - name: Test Critical Exit |
| 60 | + run: python ./test/unit_test/critical_exit/critical_exit_test.py |
| 61 | + - name: Test Real Critical Situation |
| 62 | + run: | |
| 63 | + python ./test/unit_test/critical_exit/real_critical_test.py |
| 64 | + exit 0 |
| 65 | +
|
| 66 | + - name: Test Record Module |
| 67 | + run: python ./test/unit_test/record/record_test.py |
| 68 | + - name: Test Total Record |
| 69 | + run: python ./test/unit_test/total_record/total_record_test.py |
| 70 | + |
| 71 | + - name: Test Execute Action |
| 72 | + run: python ./test/unit_test/execute_action/execute_action_test.py |
| 73 | + |
| 74 | + - name: Test Json Module |
| 75 | + run: python ./test/unit_test/json/json_test.py |
| 76 | + - name: Test Generate Json Report |
| 77 | + run: python ./test/unit_test/generate_report/json_report.py |
| 78 | + - name: Test Timeout Module |
| 79 | + run: python ./test/unit_test/timeout/timeout_test.py |
| 80 | + - name: Test Generate HTML Report |
| 81 | + run: python ./test/unit_test/generate_report/html_report_test.py |
| 82 | + |
| 83 | + - name: Test Argparse |
| 84 | + run: python ./test/unit_test/argparse/argparse_test.py |
| 85 | + |
| 86 | + - name: Test Callback Module |
| 87 | + run: python ./test/unit_test/callback/callback_test.py |
| 88 | + |
| 89 | + - name: Test Create Project Function |
| 90 | + run: python ./test/unit_test/create_project_file/create_project_test.py |
| 91 | + |
| 92 | + - name: Test Get Mouse Info |
| 93 | + run: python ./test/unit_test/get_info/mouse_info.py |
| 94 | + - name: Test Get Special Info |
| 95 | + run: python ./test/unit_test/get_info/special_info.py |
| 96 | + - name: Test Get Keyboard Info |
| 97 | + run: python ./test/unit_test/get_info/keyboard_info.py |
0 commit comments