Skip to content

Commit 56a9a5b

Browse files
authored
[ci skip] Merge pull request #428 from mgorny/fix-tests-skip-ci
Fix running tests for all Python versions
2 parents 9f6e138 + e85d260 commit 56a9a5b

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

recipe/meta.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -357,10 +357,14 @@ outputs:
357357
string: cuda{{ cuda_compiler_version | replace('.', '') }}_{{ blas_impl }}_py{{ CONDA_PY }}_h{{ PKG_HASH }}_{{ build }} # [cuda_compiler_version != "None"]
358358
string: cpu_{{ blas_impl }}_py{{ CONDA_PY }}_h{{ PKG_HASH }}_{{ build }} # [cuda_compiler_version == "None"]
359359
detect_binary_files_with_prefix: false
360-
test:
361-
requires:
360+
requirements:
361+
host:
362+
- python
363+
run:
362364
- pytorch {{ version }} cuda*_{{ blas_impl }}_py{{ CONDA_PY }}*{{ build }} # [cuda_compiler_version != "None"]
363365
- pytorch {{ version }} cpu_{{ blas_impl }}_py{{ CONDA_PY }}*{{ build }} # [cuda_compiler_version == "None"]
366+
test:
367+
requires:
364368
- {{ compiler('c') }}
365369
- {{ compiler('cxx') }}
366370
# for torch.compile tests

0 commit comments

Comments
 (0)