Skip to content

Commit 5665968

Browse files
zaniebkonstin
andauthored
Bump static Python versions in CI from 3.7 to 3.11 (#5700)
Python 3.7 is EOL and we should use the latest stable version for builds. Related to astral-sh/ruff-lsp#189 --------- Co-authored-by: konsti <[email protected]>
1 parent 33a9177 commit 5665968

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

.github/workflows/ci.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ env:
1616
CARGO_TERM_COLOR: always
1717
RUSTUP_MAX_RETRIES: 10
1818
PACKAGE_NAME: ruff
19-
PYTHON_VERSION: "3.7" # to build abi3 wheels
19+
PYTHON_VERSION: "3.11" # to build abi3 wheels
2020

2121
jobs:
2222
cargo-fmt:
@@ -142,7 +142,7 @@ jobs:
142142
- uses: actions/checkout@v3
143143
- uses: actions/setup-python@v4
144144
with:
145-
python-version: "3.11"
145+
python-version: ${{ env.PYTHON_VERSION }}
146146

147147
- uses: actions/download-artifact@v3
148148
name: Download Ruff binary
@@ -226,7 +226,7 @@ jobs:
226226
- uses: actions/checkout@v3
227227
- uses: actions/setup-python@v4
228228
with:
229-
python-version: "3.11"
229+
python-version: ${{ env.PYTHON_VERSION }}
230230
- name: "Install Rust toolchain"
231231
run: rustup show
232232
- uses: Swatinem/rust-cache@v2

.github/workflows/flake8-to-ruff.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ concurrency:
99
env:
1010
PACKAGE_NAME: flake8-to-ruff
1111
CRATE_NAME: flake8_to_ruff
12-
PYTHON_VERSION: "3.7" # to build abi3 wheels
12+
PYTHON_VERSION: "3.11"
1313
CARGO_INCREMENTAL: 0
1414
CARGO_NET_RETRY: 10
1515
CARGO_TERM_COLOR: always

.github/workflows/release.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ concurrency:
2020

2121
env:
2222
PACKAGE_NAME: ruff
23-
PYTHON_VERSION: "3.7" # to build abi3 wheels
23+
PYTHON_VERSION: "3.11"
2424
CARGO_INCREMENTAL: 0
2525
CARGO_NET_RETRY: 10
2626
CARGO_TERM_COLOR: always

0 commit comments

Comments
 (0)