Skip to content

Commit 2ce7053

Browse files
authored
Remove 3.9 support from CI and tests (#15401)
1 parent df01628 commit 2ce7053

File tree

8 files changed

+9
-9
lines changed

8 files changed

+9
-9
lines changed

.github/workflows/daily.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
strategy:
3636
matrix:
3737
os: ["ubuntu-latest", "windows-latest", "macos-latest"]
38-
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]
38+
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
3939
fail-fast: false
4040

4141
steps:

.github/workflows/meta_tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ jobs:
6565
with:
6666
version: PATH
6767
python-platform: ${{ matrix.python-platform }}
68-
python-version: "3.9" # Oldest version supported for running scripts and tests
68+
python-version: "3.10" # Oldest version supported for running scripts and tests
6969
project: ./pyrightconfig.scripts_and_tests.json
7070
stubsabot-dry-run:
7171
name: Stubsabot dry run

.github/workflows/stubtest_stdlib.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
strategy:
3232
matrix:
3333
os: ["ubuntu-latest", "windows-latest", "macos-latest"]
34-
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]
34+
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
3535
fail-fast: false
3636

3737
steps:

.github/workflows/tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
strategy:
4343
matrix:
4444
platform: ["linux", "win32", "darwin"]
45-
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]
45+
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
4646
fail-fast: false
4747
steps:
4848
- uses: actions/checkout@v6
@@ -84,7 +84,7 @@ jobs:
8484
strategy:
8585
matrix:
8686
python-platform: ["Linux", "Windows", "Darwin"]
87-
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]
87+
python-version: ["3.11", "3.12", "3.13", "3.14"]
8888
fail-fast: false
8989
steps:
9090
- uses: actions/checkout@v6

tests/mypy_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
print_error("Cannot import mypy. Did you install it?")
4545
sys.exit(1)
4646

47-
SUPPORTED_VERSIONS = ["3.14", "3.13", "3.12", "3.11", "3.10", "3.9"]
47+
SUPPORTED_VERSIONS = ["3.14", "3.13", "3.12", "3.11", "3.10"]
4848
SUPPORTED_PLATFORMS = ("linux", "win32", "darwin")
4949
DIRECTORIES_TO_TEST = [STDLIB_PATH, STUBS_PATH]
5050

tests/regr_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
TYPESHED = "typeshed"
4242

4343
SUPPORTED_PLATFORMS = ["linux", "darwin", "win32"]
44-
SUPPORTED_VERSIONS = ["3.14", "3.13", "3.12", "3.11", "3.10", "3.9"]
44+
SUPPORTED_VERSIONS = ["3.14", "3.13", "3.12", "3.11", "3.10"]
4545

4646

4747
def distribution_with_test_cases(distribution_name: str) -> DistributionTests:

tests/runtests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def main() -> None:
5050
parser.add_argument(
5151
"--python-version",
5252
default=None,
53-
choices=("3.9", "3.10", "3.11", "3.12", "3.13", "3.14"),
53+
choices=("3.10", "3.11", "3.12", "3.13", "3.14"),
5454
# We're using the oldest fully supported version because it's the most likely to produce errors
5555
# due to unsupported syntax, feature, or bug in a tool.
5656
help="Target Python version for the test (defaults to oldest supported Python version).",

tests/typecheck_typeshed.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
ReturnCode: TypeAlias = int
1515

1616
SUPPORTED_PLATFORMS = ("linux", "darwin", "win32")
17-
SUPPORTED_VERSIONS = ("3.14", "3.13", "3.12", "3.11", "3.10", "3.9")
17+
SUPPORTED_VERSIONS = ("3.14", "3.13", "3.12", "3.11", "3.10")
1818
LOWEST_SUPPORTED_VERSION = min(SUPPORTED_VERSIONS, key=lambda x: int(x.split(".")[1]))
1919
DIRECTORIES_TO_TEST = ("scripts", "tests")
2020
EMPTY: list[str] = []

0 commit comments

Comments
 (0)