Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .buildkite/_images.rayci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ steps:
- "3.10"
- "3.11"
- "3.12"
- "3.13"
Comment on lines 12 to +15
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

To improve maintainability and reduce redundancy, consider defining the list of Python versions once using a YAML anchor and then reusing it across the different build steps. This will make it easier and less error-prone to manage Python versions in the future.

For example, you could define an anchor at the top of your file (or in a suitable shared location):

.python-versions: &python-versions
  - "3.10"
  - "3.11"
  - "3.12"
  - "3.13"

And then reference it in your matrices:

# In the matrix definition
python: *python-versions

This refactoring would need to be applied to all places where this list of Python versions is duplicated.

env:
PYTHON_VERSION: "{{matrix}}"
ARCH_SUFFIX: ""
Expand All @@ -24,6 +25,7 @@ steps:
- "3.10"
- "3.11"
- "3.12"
- "3.13"
env:
PYTHON_VERSION: "{{matrix}}"
IMAGE_TYPE: "ray"
Expand All @@ -43,6 +45,7 @@ steps:
- "3.10"
- "3.11"
- "3.12"
- "3.13"
cuda:
- "11.7.1-cudnn8"
- "11.8.0-cudnn8"
Expand All @@ -67,6 +70,7 @@ steps:
- "3.10"
- "3.11"
- "3.12"
- "3.13"
cuda:
- "11.7.1-cudnn8"
- "11.8.0-cudnn8"
Expand Down Expand Up @@ -192,6 +196,7 @@ steps:
- "3.10"
- "3.11"
- "3.12"
- "3.13"
env:
PYTHON_VERSION: "{{matrix}}"
ARCH_SUFFIX: ""
Expand All @@ -210,6 +215,7 @@ steps:
- "3.10"
- "3.11"
- "3.12"
- "3.13"
cuda:
- "11.7.1"
- "11.8.0"
Expand Down