Skip to content

Commit c67c66d

Browse files
authored
ci: CuPy 14 + Python 3.14 (#2352)
1 parent cefe612 commit c67c66d

1 file changed

Lines changed: 9 additions & 14 deletions

File tree

.github/workflows/test-gpu.yml

Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -52,24 +52,19 @@ jobs:
5252
- name: Nvidia SMI sanity check
5353
run: nvidia-smi
5454

55-
- name: Install yq # https://cirun.slack.com/archives/C09SNDRB3A8/p1766512487317849?thread_ts=1766512112.938459&cid=C09SNDRB3A8
56-
# https://github.com/mikefarah/yq/issues/2592 forces version pin
57-
run: |
58-
sudo wget -qO /usr/local/bin/yq https://github.com/mikefarah/yq/releases/download/v4.49.2/yq_linux_amd64
59-
sudo chmod +x /usr/local/bin/yq
60-
61-
- name: Extract max Python version from classifiers
62-
run: |
63-
classifiers=$(yq .project.classifiers pyproject.toml -oy | grep --only-matching --perl-regexp '(?<=Python :: )(\d\.\d+)')
64-
max_version=$(echo "$classifiers" | sort -V | tail -1)
65-
echo "max_python_version=$max_version" >> $GITHUB_ENV
66-
6755
- name: Install UV
6856
uses: astral-sh/setup-uv@v6 # TODO: upgrade once cirun image supports node 24
6957
with:
7058
enable-cache: true
71-
# Any Cuda 14+ will support Python 3.14: https://github.com/cupy/cupy/issues/9346
72-
python-version: '3.13' # ${{ env.max_python_version }}
59+
60+
- name: Extract max Python version from classifiers
61+
run: |
62+
import os
63+
import check_python_versions.sources.pyproject as cpv
64+
*_, max_ver = cpv.get_supported_python_versions()
65+
with open(os.environ["GITHUB_ENV"], "a") as env:
66+
print(f"UV_PYTHON={max_ver}", file=env)
67+
shell: uvx --with=check-python-versions==0.24 python {0}
7368

7469
- name: Install AnnData
7570
run: |

0 commit comments

Comments
 (0)