Skip to content

Commit

Permalink
Bump static Python versions in CI from 3.7 to 3.11 (#5700)
Browse files Browse the repository at this point in the history
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 <konstin@mailbox.org>
  • Loading branch information
zanieb and konstin committed Jul 12, 2023
1 parent 33a9177 commit 5665968
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yaml
Expand Up @@ -16,7 +16,7 @@ env:
CARGO_TERM_COLOR: always
RUSTUP_MAX_RETRIES: 10
PACKAGE_NAME: ruff
PYTHON_VERSION: "3.7" # to build abi3 wheels
PYTHON_VERSION: "3.11" # to build abi3 wheels

jobs:
cargo-fmt:
Expand Down Expand Up @@ -142,7 +142,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.11"
python-version: ${{ env.PYTHON_VERSION }}

- uses: actions/download-artifact@v3
name: Download Ruff binary
Expand Down Expand Up @@ -226,7 +226,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.11"
python-version: ${{ env.PYTHON_VERSION }}
- name: "Install Rust toolchain"
run: rustup show
- uses: Swatinem/rust-cache@v2
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/flake8-to-ruff.yaml
Expand Up @@ -9,7 +9,7 @@ concurrency:
env:
PACKAGE_NAME: flake8-to-ruff
CRATE_NAME: flake8_to_ruff
PYTHON_VERSION: "3.7" # to build abi3 wheels
PYTHON_VERSION: "3.11"
CARGO_INCREMENTAL: 0
CARGO_NET_RETRY: 10
CARGO_TERM_COLOR: always
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Expand Up @@ -20,7 +20,7 @@ concurrency:

env:
PACKAGE_NAME: ruff
PYTHON_VERSION: "3.7" # to build abi3 wheels
PYTHON_VERSION: "3.11"
CARGO_INCREMENTAL: 0
CARGO_NET_RETRY: 10
CARGO_TERM_COLOR: always
Expand Down

0 comments on commit 5665968

Please sign in to comment.