Skip to content

Commit 3045482

Browse files
authored
Run basic Python 3.13 tests (ray-project#51688)
<!-- Thank you for your contribution! Please review https://github.com/ray-project/ray/blob/master/CONTRIBUTING.rst before opening a pull request. --> <!-- Please add a reviewer to the assignee section when you create a PR. If you don't have the access to it, we will shortly find a reviewer and assign them to your PR. --> ## Why are these changes needed? Now that conda has been released for Python 3.13 (https://github.com/conda/conda/releases/tag/25.3.0), which makes it possible to use Python 3.13 in base environments, we can run the basic tests. ## Related issue number <!-- For example: "Closes ray-project#1234" --> ## Checks - [ ] I've signed off every commit(by using the -s flag, i.e., `git commit -s`) in this PR. - [ ] I've run `scripts/format.sh` to lint the changes in this PR. - [ ] I've included any doc changes needed for https://docs.ray.io/en/master/. - [ ] I've added any new APIs to the API Reference. For example, if I added a method in Tune, I've added it in `doc/source/tune/api/` under the corresponding `.rst` file. - [ ] I've made sure the tests are passing. Note that there might be a few flaky tests, see the recent failures at https://flakey-tests.ray.io/ - Testing Strategy - [ ] Unit tests - [ ] Release tests - [ ] This PR is not tested :(
1 parent 27388ff commit 3045482

File tree

4 files changed

+8
-5
lines changed

4 files changed

+8
-5
lines changed

.buildkite/core.rayci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ steps:
3636
- "3.10"
3737
- "3.11"
3838
- "3.12"
39+
- "3.13"
3940
env:
4041
PYTHON_VERSION: "{{matrix}}"
4142
EXTRA_DEPENDENCY: core
@@ -287,6 +288,7 @@ steps:
287288
- "3.10"
288289
- "3.11"
289290
- "3.12"
291+
- "3.13"
290292

291293
# cpp tests
292294
- label: ":ray: core: cpp tests"

ci/env/install-miniconda.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ install_miniconda() {
8585
(
8686
set +x
8787
echo "Updating Anaconda Python ${python_version} to ${PYTHON}..."
88+
"${WORKSPACE_DIR}"/ci/suppress_output conda remove --force -y anaconda-anon-usage
8889
"${WORKSPACE_DIR}"/ci/suppress_output conda install -q -y python="${PYTHON}"
8990
)
9091
elif [ "${MINIMAL_INSTALL-}" = "1" ]; then # Reset environment
@@ -95,9 +96,9 @@ install_miniconda() {
9596
)
9697
fi
9798

98-
if [[ "${PYTHON-}" != "3.12" ]]; then
99+
if [[ "${PYTHON-}" != "3.12" && "${PYTHON-}" != "3.13" ]]; then
99100
# Install mpi4py as a test dependency for Python <3.12; currently mpi4py is not
100-
# available for Python 3.12
101+
# available for Python 3.12 or 3.13
101102
"${WORKSPACE_DIR}"/ci/suppress_output conda install -c anaconda mpi4py -y
102103
fi
103104

doc/source/ray-overview/installation.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ You can install the nightly Ray wheels via the following links. These daily rele
107107
`Linux Python 3.10 (x86_64)`_ `Linux Python 3.10 (aarch64)`_
108108
`Linux Python 3.11 (x86_64)`_ `Linux Python 3.11 (aarch64)`_
109109
`Linux Python 3.12 (x86_64)`_ `Linux Python 3.12 (aarch64)`_
110-
`Linux Python 3.13 (x86_64)`_ (alpha) `Linux Python 3.13 (aarch64)`_ (alpha)
110+
`Linux Python 3.13 (x86_64)`_ (beta) `Linux Python 3.13 (aarch64)`_ (beta)
111111
=============================================== ================================================
112112

113113
.. tab-item:: MacOS
@@ -119,7 +119,7 @@ You can install the nightly Ray wheels via the following links. These daily rele
119119
`MacOS Python 3.10 (x86_64)`_ `MacOS Python 3.10 (arm64)`_
120120
`MacOS Python 3.11 (x86_64)`_ `MacOS Python 3.11 (arm64)`_
121121
`MacOS Python 3.12 (x86_64)`_ `MacOS Python 3.12 (arm64)`_
122-
`MacOS Python 3.13 (x86_64)`_ (alpha) `MacOS Python 3.13 (arm64)`_ (alpha)
122+
`MacOS Python 3.13 (x86_64)`_ (beta) `MacOS Python 3.13 (arm64)`_ (beta)
123123
============================================ ==============================================
124124

125125
.. tab-item:: Windows (beta)

python/ray/tests/test_basic_2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -573,7 +573,7 @@ def __init__(self):
573573

574574
def call(self):
575575
# Record the current thread that runs this function.
576-
self.threads.add(threading.current_thread())
576+
self.threads.add(threading.get_ident())
577577

578578
def get_num_threads(self):
579579
return len(self.threads)

0 commit comments

Comments
 (0)