Skip to content

Commit 9af2369

Browse files
authored
Backport PR #1596: GPU tests: install with uv (#1618)
1 parent bb5bf85 commit 9af2369

File tree

4 files changed

+18
-26
lines changed

4 files changed

+18
-26
lines changed

.github/workflows/test-gpu.yml

+11-9
Original file line numberDiff line numberDiff line change
@@ -51,23 +51,25 @@ jobs:
5151
- name: Nvidia SMI sanity check
5252
run: nvidia-smi
5353

54-
- uses: mamba-org/setup-micromamba@v1
54+
- name: Install Python
55+
uses: actions/setup-python@v5
5556
with:
56-
micromamba-version: "1.5.6-0"
57-
environment-file: ci/gpu_ci.yml
58-
post-cleanup: "all"
57+
python-version: "3.x"
58+
59+
- name: Install UV
60+
uses: hynek/setup-cached-uv@v2
61+
with:
62+
cache-dependency-path: pyproject.toml
5963

6064
- name: Install AnnData
61-
run: uv pip install -e .[dev,test,gpu]
65+
run: uv pip install --system -e ".[dev,test,cu12]" llvmlite>=0.43
6266

6367
- name: Env list
64-
run: |
65-
micromamba list
66-
pip list
68+
run: pip list
6769

6870
- name: Run test
6971
run: pytest -m gpu --cov --cov-report=xml --cov-context=test -n 4
7072

71-
- uses: codecov/codecov-action@v3
73+
- uses: codecov/codecov-action@v4
7274
with:
7375
flags: gpu-tests

ci/gpu_ci.yml

-13
This file was deleted.

docs/release-notes/1596.dev.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
create new `cupy` installation options for cuda 11 & 12 called `cu11` and `cu12` {user}`Intron7`

pyproject.toml

+6-4
Original file line numberDiff line numberDiff line change
@@ -101,10 +101,9 @@ test = [
101101
"pytest_memray",
102102
"pytest-mock"
103103
]
104-
gpu = [
105-
"cupy",
106-
"numpy<2.0.0",
107-
]
104+
gpu = ["cupy"]
105+
cu12 = ["cupy-cuda12x"]
106+
cu11 = ["cupy-cuda11x"]
108107

109108
[tool.hatch.version]
110109
source = "vcs"
@@ -212,3 +211,6 @@ title_format = "(v{version})=\n### {version} {{small}}`{project_date}`"
212211

213212
[tool.towncrier.fragment.performance]
214213
name = "Performance"
214+
215+
[tool.towncrier.fragment.dev]
216+
name = "Development Process"

0 commit comments

Comments
 (0)