Skip to content

Commit 9b1201c

Browse files
committed
[ci] Update python tests
Signed-off-by: Viet Nguyen Duc <[email protected]>
1 parent d411615 commit 9b1201c

File tree

3 files changed

+29
-15
lines changed

3 files changed

+29
-15
lines changed

.github/workflows/bazel.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ on:
7070
jobs:
7171
bazel:
7272
name: ${{ inputs.name }}
73-
runs-on: ${{ inputs.os == 'macos' && 'macos-13' || format('{0}-latest', inputs.os) }}
73+
runs-on: ${{ format('{0}-latest', inputs.os) }}
7474
env:
7575
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7676
SEL_M2_USER: ${{ secrets.SEL_M2_USER }}

.github/workflows/ci-python.yml

Lines changed: 27 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
docs:
1717
name: Documentation
1818
needs: build
19-
runs-on: ubuntu-20.04
19+
runs-on: ubuntu-latest
2020
steps:
2121
- name: Checkout source tree
2222
uses: actions/checkout@v4
@@ -36,7 +36,7 @@ jobs:
3636
lint:
3737
name: Lint
3838
needs: build
39-
runs-on: ubuntu-20.04
39+
runs-on: ubuntu-latest
4040
steps:
4141
- name: Checkout source tree
4242
uses: actions/checkout@v4
@@ -58,7 +58,7 @@ jobs:
5858
mypy:
5959
name: Mypy
6060
needs: build
61-
runs-on: ubuntu-20.04
61+
runs-on: ubuntu-latest
6262
steps:
6363
- name: Checkout source tree
6464
uses: actions/checkout@v4
@@ -81,19 +81,33 @@ jobs:
8181
name: Remote Tests
8282
needs: build
8383
uses: ./.github/workflows/bazel.yml
84+
strategy:
85+
fail-fast: false
86+
matrix:
87+
include:
88+
- browser: chrome
89+
- browser: firefox
8490
with:
85-
name: Integration Tests (remote)
86-
browser: firefox
87-
cache-key: py-remote
91+
name: Integration Tests (remote, ${{ matrix.browser }})
92+
browser: ${{ matrix.browser }}
93+
cache-key: py-remote-${{ matrix.browser }}
8894
run: bazel test --local_test_jobs 1 --flaky_test_attempts 3 //py:test-remote
8995

90-
safari-tests:
91-
name: Safari Tests
96+
browser-tests:
97+
name: Browser Tests
9298
needs: build
9399
uses: ./.github/workflows/bazel.yml
100+
strategy:
101+
fail-fast: false
102+
matrix:
103+
include:
104+
- browser: safari
105+
os: macos
106+
- browser: edge
107+
os: macos
94108
with:
95-
name: Integration Tests (safari)
96-
browser: safari
97-
os: macos
98-
cache-key: py-safari
99-
run: bazel test --local_test_jobs 1 --flaky_test_attempts 3 //py:test-safari
109+
name: Integration Tests (${{ matrix.browser }}, ${{ matrix.os }})
110+
browser: ${{ matrix.browser }}
111+
os: ${{ matrix.os }}
112+
cache-key: py-browser-${{ matrix.browser }}
113+
run: bazel test --flaky_test_attempts 3 //py:test-${{ matrix.browser }}

.github/workflows/label-commenter.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ permissions:
1212
jobs:
1313
comment:
1414
if: github.repository_owner == 'seleniumhq'
15-
runs-on: ubuntu-20.04
15+
runs-on: ubuntu-latest
1616
steps:
1717
- uses: actions/checkout@v4
1818
- name: Label Commenter

0 commit comments

Comments
 (0)