-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[python-package] support Python 3.13 (#6668)
* [python-package] support Python 3.13 * update everything in the base conda environment, not just conda * python packages now use 'cp' instead of 'cpython' * fix python_package * get more logs * try to force a better solver error * merge latest * use build= explicitly * restore all CI, revert debugging changes * Update .ci/test.sh * empty commit to re-trigger CI * update docs conda env * pin to specific OS and mambaforge * Update .github/workflows/python_package.yml Co-authored-by: Nikita Titov <[email protected]> * update default Python version in .vsts-ci.yml * remove upper-version pins * update RTD image --------- Co-authored-by: Nikita Titov <[email protected]>
- Loading branch information
1 parent
3aac25a
commit 9f1af05
Showing
11 changed files
with
59 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,32 +28,32 @@ jobs: | |
include: | ||
- os: macos-13 | ||
task: regular | ||
python_version: '3.10' | ||
python_version: '3.11' | ||
- os: macos-13 | ||
task: sdist | ||
python_version: '3.11' | ||
python_version: '3.12' | ||
- os: macos-13 | ||
task: bdist | ||
python_version: '3.8' | ||
python_version: '3.9' | ||
- os: macos-13 | ||
task: if-else | ||
python_version: '3.9' | ||
python_version: '3.10' | ||
- os: macos-14 | ||
task: bdist | ||
method: wheel | ||
python_version: '3.10' | ||
python_version: '3.11' | ||
- os: macos-13 | ||
task: mpi | ||
method: source | ||
python_version: '3.11' | ||
python_version: '3.12' | ||
- os: macos-13 | ||
task: mpi | ||
method: pip | ||
python_version: '3.12' | ||
python_version: '3.13' | ||
- os: macos-13 | ||
task: mpi | ||
method: wheel | ||
python_version: '3.9' | ||
python_version: '3.10' | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
@@ -113,12 +113,19 @@ jobs: | |
--rm \ | ||
-v $(pwd):/opt/lgb-build \ | ||
-w /opt/lgb-build \ | ||
python:3.12 \ | ||
python:3.13 \ | ||
/bin/bash ./.ci/test-python-latest.sh | ||
test-oldest-versions: | ||
test-old-versions: | ||
name: Python - oldest supported versions (ubuntu-latest) | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 60 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
# end-of-life Python versions | ||
python_version: | ||
- '3.7' | ||
- '3.8' | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
@@ -140,12 +147,12 @@ jobs: | |
--rm \ | ||
-v $(pwd):/opt/lgb-build \ | ||
-w /opt/lgb-build \ | ||
python:3.7 \ | ||
python:${{ matrix.python_version }} \ | ||
/bin/bash ./.ci/test-python-oldest.sh | ||
all-python-package-jobs-successful: | ||
if: always() | ||
runs-on: ubuntu-latest | ||
needs: [test, test-latest-versions, test-oldest-versions] | ||
needs: [test, test-latest-versions, test-old-versions] | ||
steps: | ||
- name: Note that all tests succeeded | ||
uses: re-actors/[email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters