1- name : WebRunner Dev Python3.10
1+ name : WebRunner Dev
22
33on :
44 push :
@@ -12,69 +12,126 @@ permissions:
1212 contents : read
1313
1414jobs :
15- build_dev_version :
15+ unit-test :
16+ name : Unit Tests (Python ${{ matrix.python-version }})
17+ runs-on : ubuntu-latest
18+ strategy :
19+ fail-fast : false
20+ matrix :
21+ python-version : ["3.10", "3.11", "3.12", "3.13"]
22+
23+ steps :
24+ - uses : actions/checkout@v4
25+
26+ - name : Set up Python ${{ matrix.python-version }}
27+ uses : actions/setup-python@v5
28+ with :
29+ python-version : ${{ matrix.python-version }}
30+
31+ - name : Install dependencies
32+ run : |
33+ python -m pip install --upgrade pip wheel
34+ pip install -r dev_requirements.txt
35+ pip install pytest
36+
37+ - name : Run unit tests
38+ run : pytest test/unit_test/test_*.py -v
39+
40+ integration-test :
41+ name : Integration Tests (Python ${{ matrix.python-version }})
42+ needs : unit-test
1643 runs-on : windows-latest
44+ strategy :
45+ fail-fast : false
46+ matrix :
47+ python-version : ["3.10", "3.11", "3.12", "3.13"]
1748
1849 steps :
19- - uses : actions/checkout@v3
20- - name : Set up Python 3.10
21- uses : actions/setup-python@v3
50+ - uses : actions/checkout@v4
51+
52+ - name : Set up Python ${{ matrix.python-version }}
53+ uses : actions/setup-python@v5
2254 with :
23- python-version : " 3.10"
55+ python-version : ${{ matrix.python-version }}
56+
2457 - name : Install dependencies
2558 run : |
2659 python -m pip install --upgrade pip wheel
2760 pip install -r dev_requirements.txt
28- - name : Install firefox
61+
62+ - name : Install Firefox
2963 run : |
30- $SourceURL = "https://download.mozilla.org/?product=firefox-latest&os=win&lang=en-US";
31- $Installer = $env:TEMP + "\firefox.exe";
32- Invoke-WebRequest $SourceURL -OutFile $Installer;
33- Start-Process -FilePath $Installer -Args "/s" -Verb RunAs -Wait;
34- Remove-Item $Installer;
64+ $SourceURL = "https://download.mozilla.org/?product=firefox-latest&os=win&lang=en-US";
65+ $Installer = $env:TEMP + "\firefox.exe";
66+ Invoke-WebRequest $SourceURL -OutFile $Installer;
67+ Start-Process -FilePath $Installer -Args "/s" -Verb RunAs -Wait;
68+ Remove-Item $Installer;
69+
70+ - name : Test Start Webdriver
71+ run : python ./test/unit_test/start_webdriver_test/get_webdriver.py
72+
73+ - name : Test Start Webdriver With Options
74+ run : python ./test/unit_test/start_webdriver_with_options/webdriver_with_options.py
75+
3576 - name : Test Desired Capabilities
3677 run : python ./test/unit_test/desired_capabilities_test/desired_capabilities_test.py
78+
3779 - name : Test Find And Click
3880 run : python ./test/unit_test/find_and_click_test/find_and_click_test.py
81+
3982 - name : Test Multi Webdriver
4083 run : python ./test/unit_test/multi_driver_test/multi_driver_test.py
84+
4185 - name : Test Start Webdriver And Assert Title
4286 run : python ./test/unit_test/start_webdriver_and_asset_title_test/title_test.py
43- - name : Test Get Webdriver
44- run : python ./test/unit_test/start_webdriver_test/get_webdriver.py
45- - name : Test Start Webdriver With Options
46- run : python ./test/unit_test/start_webdriver_with_options/webdriver_with_options.py
47- - name : Test test_object
87+
88+ - name : Test TestObject
4889 run : python ./test/unit_test/test_object_test/test_object_test.py
90+
4991 - name : Test Record Class
5092 run : python ./test/unit_test/test_record_class_test/test_record_class_test.py
93+
5194 - name : Test Check Value
5295 run : python ./test/unit_test/check_value_test/check_value_test.py
96+
5397 - name : Test Switch
5498 run : python ./test/unit_test/switch_test/switch_test.py
99+
55100 - name : Test Close Choose Webdriver
56101 run : python ./test/unit_test/close_choose_webdriver_test/close_choose_webdriver_test.py
102+
57103 - name : Test Redirect
58104 run : python ./test/unit_test/redirect_test/redirect_test.py
105+
59106 - name : Test Cookie
60107 run : python ./test/unit_test/cookie_test/cookie_test.py
108+
61109 - name : Test Set Timeout
62110 run : python ./test/unit_test/set_timeout_test/set_timeout_test.py
111+
63112 - name : Test Action Chain
64113 run : python ./test/unit_test/action_chains_test/action_chains_test.py
114+
65115 - name : Test Window
66116 run : python ./test/unit_test/window_test/window_test.py
117+
67118 - name : Test Screenshot
68119 run : python ./test/unit_test/screenshot_test/screenshot_test.py
120+
69121 - name : Test Executor
70122 run : python ./test/unit_test/executor_test/executor_test.py
123+
71124 - name : Test Argparse
72125 run : python ./test/unit_test/argparse/argparse_test.py
126+
73127 - name : Test Generate HTML Report
74128 run : python ./test/unit_test/report_test/html_report_test.py
129+
75130 - name : Test Generate JSON Report
76131 run : python ./test/unit_test/report_test/json_report_test.py
132+
77133 - name : Test Generate XML Report
78134 run : python ./test/unit_test/report_test/xml_report_test.py
135+
79136 - name : Test Callback
80- run : python ./test/unit_test/callback/callback_test.py
137+ run : python ./test/unit_test/callback/callback_test.py
0 commit comments