11
11
with :
12
12
name : Build
13
13
cache-key : py-build
14
- run : bazel build //py:selenium-wheel //py:selenium-sdist
14
+ run : |
15
+ bazel build //py:selenium-wheel //py:selenium-sdist
15
16
16
17
docs :
17
18
name : Documentation
29
30
python -m pip install --upgrade pip
30
31
pip install tox==4.30.2
31
32
- name : Generate docs
32
- run : tox -c py/tox.ini
33
+ run : |
34
+ tox -c py/tox.ini
33
35
env :
34
36
TOXENV : docs
35
37
68
70
name : Unit Tests (${{ matrix.os }})
69
71
os : ${{ matrix.os }}
70
72
cache-key : python-unit-test-${{ matrix.os }}
71
- run : bazel test //py:unit
73
+ run : |
74
+ bazel test //py:unit
75
+
76
+ unit-tests-windows :
77
+ name : Unit Tests
78
+ needs : build
79
+ uses : ./.github/workflows/bazel.yml
80
+ strategy :
81
+ fail-fast : false
82
+ matrix :
83
+ include :
84
+ - os : windows
85
+ with :
86
+ name : Unit Tests (${{ matrix.os }})
87
+ os : ${{ matrix.os }}
88
+ cache-key : python-unit-test-${{ matrix.os }}
89
+ run : |
90
+ fsutil 8dot3name set 0
91
+ bazel test //py:unit
72
92
73
93
remote-tests :
74
94
name : Remote Tests
83
103
name : Integration Tests (remote, ${{ matrix.browser }})
84
104
browser : ${{ matrix.browser }}
85
105
cache-key : py-remote-${{ matrix.browser }}
86
- run : bazel test --local_test_jobs 1 --flaky_test_attempts 3 //py:test-remote
106
+ run : |
107
+ bazel test --local_test_jobs 1 --flaky_test_attempts 3 //py:test-remote
87
108
88
109
browser-tests :
89
110
name : Browser Tests
@@ -105,7 +126,34 @@ jobs:
105
126
os : ${{ matrix.os }}
106
127
cache-key : py-browser-${{ matrix.browser }}
107
128
run : |
108
- bazel test --local_test_jobs 1 --flaky_test_attempts 3 --pin_browsers=true //py:common-${{ matrix.browser }}-bidi //py:test-${{ matrix.browser }}
129
+ bazel test --local_test_jobs 1 --flaky_test_attempts 3 --pin_browsers=true \
130
+ //py:common-${{ matrix.browser }}-bidi \
131
+ //py:test-${{ matrix.browser }}
132
+
133
+ browser-tests-windows :
134
+ name : Browser Tests
135
+ needs : build
136
+ uses : ./.github/workflows/bazel.yml
137
+ strategy :
138
+ fail-fast : false
139
+ matrix :
140
+ include :
141
+ - browser : chrome
142
+ os : windows
143
+ - browser : edge
144
+ os : windows
145
+ - browser : firefox
146
+ os : windows
147
+ with :
148
+ name : Integration Tests (${{ matrix.browser }}, ${{ matrix.os }})
149
+ browser : ${{ matrix.browser }}
150
+ os : ${{ matrix.os }}
151
+ cache-key : py-browser-${{ matrix.browser }}
152
+ run : |
153
+ fsutil 8dot3name set 0
154
+ bazel test --local_test_jobs 1 --flaky_test_attempts 3 --pin_browsers=true \
155
+ //py:common-${{ matrix.browser }}-bidi \
156
+ //py:test-${{ matrix.browser }}
109
157
110
158
safari-tests :
111
159
name : Browser Tests
@@ -123,4 +171,6 @@ jobs:
123
171
os : ${{ matrix.os }}
124
172
cache-key : py-browser-${{ matrix.browser }}
125
173
run : |
126
- bazel test --local_test_jobs 1 --flaky_test_attempts 3 --pin_browsers=true //py:common-${{ matrix.browser }} //py:test-${{ matrix.browser }}
174
+ bazel test --local_test_jobs 1 --flaky_test_attempts 3 --pin_browsers=true \
175
+ //py:common-${{ matrix.browser }} \
176
+ //py:test-${{ matrix.browser }}
0 commit comments