Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ci][py] Update runners and tests #14729

Merged
merged 1 commit into from
Nov 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/bazel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ on:
jobs:
bazel:
name: ${{ inputs.name }}
runs-on: ${{ inputs.os == 'macos' && 'macos-13' || format('{0}-latest', inputs.os) }}
runs-on: ${{ format('{0}-latest', inputs.os) }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SEL_M2_USER: ${{ secrets.SEL_M2_USER }}
Expand Down
39 changes: 26 additions & 13 deletions .github/workflows/ci-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
docs:
name: Documentation
needs: build
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
steps:
- name: Checkout source tree
uses: actions/checkout@v4
Expand All @@ -36,7 +36,7 @@ jobs:
lint:
name: Lint
needs: build
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
steps:
- name: Checkout source tree
uses: actions/checkout@v4
Expand All @@ -58,7 +58,7 @@ jobs:
mypy:
name: Mypy
needs: build
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
steps:
- name: Checkout source tree
uses: actions/checkout@v4
Expand All @@ -81,19 +81,32 @@ jobs:
name: Remote Tests
needs: build
uses: ./.github/workflows/bazel.yml
strategy:
fail-fast: false
matrix:
include:
- browser: firefox
with:
name: Integration Tests (remote)
browser: firefox
cache-key: py-remote
name: Integration Tests (remote, ${{ matrix.browser }})
browser: ${{ matrix.browser }}
cache-key: py-remote-${{ matrix.browser }}
run: bazel test --local_test_jobs 1 --flaky_test_attempts 3 //py:test-remote

safari-tests:
name: Safari Tests
browser-tests:
name: Browser Tests
needs: build
uses: ./.github/workflows/bazel.yml
strategy:
fail-fast: false
matrix:
include:
- browser: safari
os: macos
- browser: chrome
os: macos
with:
name: Integration Tests (safari)
browser: safari
os: macos
cache-key: py-safari
run: bazel test --local_test_jobs 1 --flaky_test_attempts 3 //py:test-safari
name: Integration Tests (${{ matrix.browser }}, ${{ matrix.os }})
browser: ${{ matrix.browser }}
os: ${{ matrix.os }}
cache-key: py-browser-${{ matrix.browser }}
run: bazel test --flaky_test_attempts 3 //py:test-${{ matrix.browser }}
2 changes: 1 addition & 1 deletion .github/workflows/label-commenter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ permissions:
jobs:
comment:
if: github.repository_owner == 'seleniumhq'
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Label Commenter
Expand Down
Loading