-
Notifications
You must be signed in to change notification settings - Fork 1
137 lines (102 loc) · 4.09 KB
/
test_stable.yml
File metadata and controls
137 lines (102 loc) · 4.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
name: WebRunner Stable
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
schedule:
- cron: "0 7 * * *"
permissions:
contents: read
jobs:
unit-test:
name: Unit Tests (Python ${{ matrix.python-version }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip wheel
pip install -r requirements.txt
pip install pytest
- name: Run unit tests
run: python -m pytest test/unit_test/test_*.py -v
integration-test:
name: Integration Tests (Python ${{ matrix.python-version }})
needs: unit-test
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip wheel
pip install -r requirements.txt
- name: Install Firefox
run: |
$SourceURL = "https://download.mozilla.org/?product=firefox-latest&os=win&lang=en-US";
$Installer = $env:TEMP + "\firefox.exe";
Invoke-WebRequest $SourceURL -OutFile $Installer;
Start-Process -FilePath $Installer -Args "/s" -Verb RunAs -Wait;
Remove-Item $Installer;
- name: Test Start Webdriver
run: python ./test/unit_test/start_webdriver_test/get_webdriver.py
- name: Test Start Webdriver With Options
run: python ./test/unit_test/start_webdriver_with_options/webdriver_with_options.py
- name: Test Desired Capabilities
run: python ./test/unit_test/desired_capabilities_test/desired_capabilities_test.py
- name: Test Find And Click
run: python ./test/unit_test/find_and_click_test/find_and_click_test.py
- name: Test Multi Webdriver
run: python ./test/unit_test/multi_driver_test/multi_driver_test.py
- name: Test Start Webdriver And Assert Title
run: python ./test/unit_test/start_webdriver_and_asset_title_test/title_test.py
- name: Test TestObject
run: python ./test/unit_test/test_object_test/test_object_test.py
- name: Test Record Class
run: python ./test/unit_test/test_record_class_test/test_record_class_test.py
- name: Test Check Value
run: python ./test/unit_test/check_value_test/check_value_test.py
- name: Test Switch
run: python ./test/unit_test/switch_test/switch_test.py
- name: Test Close Choose Webdriver
run: python ./test/unit_test/close_choose_webdriver_test/close_choose_webdriver_test.py
- name: Test Redirect
run: python ./test/unit_test/redirect_test/redirect_test.py
- name: Test Cookie
run: python ./test/unit_test/cookie_test/cookie_test.py
- name: Test Set Timeout
run: python ./test/unit_test/set_timeout_test/set_timeout_test.py
- name: Test Action Chain
run: python ./test/unit_test/action_chains_test/action_chains_test.py
- name: Test Window
run: python ./test/unit_test/window_test/window_test.py
- name: Test Screenshot
run: python ./test/unit_test/screenshot_test/screenshot_test.py
- name: Test Executor
run: python ./test/unit_test/executor_test/executor_test.py
- name: Test Argparse
run: python ./test/unit_test/argparse/argparse_test.py
- name: Test Generate HTML Report
run: python ./test/unit_test/report_test/html_report_test.py
- name: Test Generate JSON Report
run: python ./test/unit_test/report_test/json_report_test.py
- name: Test Generate XML Report
run: python ./test/unit_test/report_test/xml_report_test.py
- name: Test Callback
run: python ./test/unit_test/callback/callback_test.py