Skip to content

Commit 9c3d182

Browse files
authored
[ci] Add range of python version 3.8 to 3.13 for example tests (SeleniumHQ#2065)
Signed-off-by: Viet Nguyen Duc <nguyenducviet4496@gmail.com>
1 parent 0e011c5 commit 9c3d182

File tree

2 files changed

+23
-5
lines changed

2 files changed

+23
-5
lines changed

.github/workflows/python-examples.yml

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,25 @@ jobs:
2525
strategy:
2626
fail-fast: false
2727
matrix:
28-
os: [ ubuntu, windows, macos ]
29-
release: [ stable, nightly ]
28+
include:
29+
- os: ubuntu
30+
release: stable
31+
python: '3.8'
32+
- os: ubuntu
33+
release: nightly
34+
python: '3.11'
35+
- os: windows
36+
release: stable
37+
python: '3.9'
38+
- os: windows
39+
release: nightly
40+
python: '3.12'
41+
- os: macos
42+
release: stable
43+
python: '3.10'
44+
- os: macos
45+
release: nightly
46+
python: '3.13'
3047
runs-on: ${{ format('{0}-latest', matrix.os) }}
3148
steps:
3249
- name: Checkout GitHub repo
@@ -47,7 +64,7 @@ jobs:
4764
- name: Set up Python
4865
uses: actions/setup-python@v5
4966
with:
50-
python-version: 3.8
67+
python-version: ${{ matrix.python }}
5168
- name: Install dependencies nightly non-Windows
5269
if: matrix.release == 'nightly' && matrix.os != 'windows'
5370
run: |
@@ -80,8 +97,8 @@ jobs:
8097
- name: Run tests
8198
uses: nick-invision/retry@v3.0.0
8299
with:
83-
timeout_minutes: 40
100+
timeout_minutes: 60
84101
max_attempts: 3
85102
command: |
86103
cd examples/python
87-
pytest
104+
pytest --reruns 3

examples/python/requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@ selenium==4.26.1
22
pytest
33
trio
44
pytest-trio
5+
pytest-rerunfailures
56
flake8
67
requests

0 commit comments

Comments
 (0)