Skip to content

Commit 4f09ddf

Browse files
committed
[ci][py] Docs, Lint, Mypy with range of support versions
Signed-off-by: Viet Nguyen Duc <[email protected]>
1 parent d87cd35 commit 4f09ddf

File tree

2 files changed

+32
-10
lines changed

2 files changed

+32
-10
lines changed

.github/workflows/ci-python.yml

Lines changed: 30 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,24 @@ jobs:
1717
name: Documentation
1818
needs: build
1919
runs-on: ubuntu-latest
20+
strategy:
21+
matrix:
22+
include:
23+
- python: '3.8'
24+
tox: '4.6.4'
25+
- python: '3.13'
26+
tox: '4.23.2'
2027
steps:
2128
- name: Checkout source tree
2229
uses: actions/checkout@v4
23-
- name: Set up Python 3.8
30+
- name: Set up Python ${{ matrix.python }}
2431
uses: actions/setup-python@v4
2532
with:
26-
python-version: 3.8
33+
python-version: ${{ matrix.python }}
2734
- name: Install dependencies
2835
run: |
2936
python -m pip install --upgrade pip
30-
pip install tox==4.6.4
37+
pip install tox==${{ matrix.tox }}
3138
- name: Test with tox
3239
run: tox -c py/tox.ini
3340
env:
@@ -37,17 +44,24 @@ jobs:
3744
name: Lint
3845
needs: build
3946
runs-on: ubuntu-latest
47+
strategy:
48+
matrix:
49+
include:
50+
- python: '3.8'
51+
tox: '4.6.4'
52+
- python: '3.13'
53+
tox: '4.23.2'
4054
steps:
4155
- name: Checkout source tree
4256
uses: actions/checkout@v4
43-
- name: Set up Python 3.8
57+
- name: Set up Python ${{ matrix.python }}
4458
uses: actions/setup-python@v4
4559
with:
46-
python-version: 3.8
60+
python-version: ${{ matrix.python }}
4761
- name: Install dependencies
4862
run: |
4963
python -m pip install --upgrade pip
50-
pip install tox==4.6.4
64+
pip install tox==${{ matrix.tox }}
5165
- name: Test with tox
5266
run: tox -c py/tox.ini
5367
env:
@@ -59,17 +73,24 @@ jobs:
5973
name: Mypy
6074
needs: build
6175
runs-on: ubuntu-latest
76+
strategy:
77+
matrix:
78+
include:
79+
- python: '3.8'
80+
tox: '4.6.4'
81+
- python: '3.13'
82+
tox: '4.23.2'
6283
steps:
6384
- name: Checkout source tree
6485
uses: actions/checkout@v4
65-
- name: Set up Python 3.8
86+
- name: Set up Python ${{ matrix.python }}
6687
uses: actions/setup-python@v4
6788
with:
68-
python-version: 3.8
89+
python-version: ${{ matrix.python }}
6990
- name: Install dependencies
7091
run: |
7192
python -m pip install --upgrade pip
72-
pip install tox==4.6.4
93+
pip install tox==${{ matrix.tox }}
7394
- name: Test with tox
7495
run: |
7596
tox -c py/tox.ini -- --cobertura-xml-report ci || true

py/pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ build-backend = "setuptools.build_meta"
55
[project]
66
name = "selenium"
77
version = "4.28.0.202411252021"
8-
license = "Apache 2.0"
8+
license = { text = "Apache-2.0" }
99
description = "Official Python bindings for Selenium WebDriver."
1010
readme = "README.rst"
1111
requires-python = "~=3.8"
@@ -24,6 +24,7 @@ classifiers = [
2424
"Programming Language :: Python :: 3.10",
2525
"Programming Language :: Python :: 3.11",
2626
"Programming Language :: Python :: 3.12",
27+
"Programming Language :: Python :: 3.13",
2728
]
2829
dependencies = [
2930
"urllib3[socks]>=1.26,<3",

0 commit comments

Comments
 (0)