1111 with :
1212 name : Build
1313 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
1516
1617 docs :
1718 name : Documentation
@@ -21,15 +22,16 @@ jobs:
2122 - name : Checkout source tree
2223 uses : actions/checkout@v4
2324 - name : Set up Python 3.9
24- uses : actions/setup-python@v4
25+ uses : actions/setup-python@v6
2526 with :
2627 python-version : 3.9
2728 - name : Install dependencies
2829 run : |
2930 python -m pip install --upgrade pip
30- pip install tox==4.27.0
31+ pip install tox==4.30.2
3132 - name : Generate docs
32- run : tox -c py/tox.ini
33+ run : |
34+ tox -c py/tox.ini
3335 env :
3436 TOXENV : docs
3537
@@ -41,19 +43,36 @@ jobs:
4143 - name : Checkout source tree
4244 uses : actions/checkout@v4
4345 - name : Set up Python 3.9
44- uses : actions/setup-python@v4
46+ uses : actions/setup-python@v6
4547 with :
4648 python-version : 3.9
4749 - name : Install dependencies
4850 run : |
4951 python -m pip install --upgrade pip
50- pip install tox==4.27.0
52+ pip install tox==4.30.2
5153 - name : Run type checking
5254 run : |
5355 tox -c py/tox.ini || true
5456 env :
5557 TOXENV : mypy
5658
59+ unit-tests :
60+ name : Unit Tests
61+ needs : build
62+ uses : ./.github/workflows/bazel.yml
63+ strategy :
64+ fail-fast : false
65+ matrix :
66+ include :
67+ - os : ubuntu
68+ - os : macos
69+ with :
70+ name : Unit Tests (${{ matrix.os }})
71+ os : ${{ matrix.os }}
72+ cache-key : python-unit-test-${{ matrix.os }}
73+ run : |
74+ bazel test //py:unit
75+
5776 remote-tests :
5877 name : Remote Tests
5978 needs : build
6786 name : Integration Tests (remote, ${{ matrix.browser }})
6887 browser : ${{ matrix.browser }}
6988 cache-key : py-remote-${{ matrix.browser }}
70- run : bazel test --local_test_jobs 1 --flaky_test_attempts 3 //py:test-remote
89+ run : |
90+ bazel test --local_test_jobs 1 --flaky_test_attempts 3 //py:test-remote
7191
7292 browser-tests :
7393 name : Browser Tests
@@ -89,10 +109,30 @@ jobs:
89109 os : ${{ matrix.os }}
90110 cache-key : py-browser-${{ matrix.browser }}
91111 run : |
92- bazel test --local_test_jobs 1 --flaky_test_attempts 3 --pin_browsers=true //py:common-${{ matrix.browser }}-bidi
93- bazel test --local_test_jobs 1 --flaky_test_attempts 3 --pin_browsers=true //py:test-${{ matrix.browser }}
112+ bazel test --local_test_jobs 1 --flaky_test_attempts 3 --pin_browsers=true //py:common-${{ matrix.browser }}-bidi //py:test-${{ matrix.browser }}
113+
114+ browser-tests-windows :
115+ name : Browser Tests
116+ needs : build
117+ uses : ./.github/workflows/bazel.yml
118+ strategy :
119+ fail-fast : false
120+ matrix :
121+ include :
122+ - browser : chrome
123+ os : windows
124+ - browser : edge
125+ os : windows
126+ with :
127+ name : Integration Tests (${{ matrix.browser }}, ${{ matrix.os }})
128+ browser : ${{ matrix.browser }}
129+ os : ${{ matrix.os }}
130+ cache-key : py-browser-${{ matrix.browser }}
131+ run : |
132+ fsutil 8dot3name set 0
133+ bazel test --local_test_jobs 1 --flaky_test_attempts 3 --pin_browsers=true //py:common-${{ matrix.browser }}-bidi //py:test-${{ matrix.browser }}
94134
95- safari -tests :
135+ browser -tests-macos :
96136 name : Browser Tests
97137 needs : build
98138 uses : ./.github/workflows/bazel.yml
@@ -108,4 +148,4 @@ jobs:
108148 os : ${{ matrix.os }}
109149 cache-key : py-browser-${{ matrix.browser }}
110150 run : |
111- bazel test --local_test_jobs 1 --flaky_test_attempts 3 --pin_browsers=true //py:test-${{ matrix.browser }}
151+ bazel test --local_test_jobs 1 --flaky_test_attempts 3 --pin_browsers=true //py:common-${{ matrix.browser }} //py: test-${{ matrix.browser }}
0 commit comments