Skip to content

Commit dc17c71

Browse files
committed
Pass mpi environment variable to tox
1 parent 6b0c9a8 commit dc17c71

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

merlin/models/tf/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright (c) 2021, NVIDIA CORPORATION.
2+
# Copyright (c) 2023, NVIDIA CORPORATION.
33
#
44
# Licensed under the Apache License, Version 2.0 (the "License");
55
# you may not use this file except in compliance with the License.

tox.ini

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ allowlist_externals =
1616
bash
1717
deps =
1818
--no-deps -rrequirements/test.txt
19+
passenv =
20+
OPAL_PREFIX
1921
setenv =
2022
TF_GPU_ALLOCATOR=cuda_malloc_async
2123
sitepackages=true
@@ -24,7 +26,7 @@ commands =
2426
python -m pip install --upgrade git+https://github.com/NVIDIA-Merlin/dataloader.git@{env:MERLIN_BRANCH:main}
2527
python -m pip install --upgrade git+https://github.com/NVIDIA-Merlin/nvtabular.git@{env:MERLIN_BRANCH:main}
2628
python -m pip install --upgrade git+https://github.com/NVIDIA-Merlin/systems.git@{env:MERLIN_BRANCH:main}
27-
bash -c 'python -m pytest --cov-report term --cov merlin -m "{env:PYTEST_MARKERS}" -rxs tests || ([ $? = 5 ] && exit 0 || exit $?)'
29+
bash -c 'python -m pytest --cov-report term --cov merlin -m "{env:PYTEST_MARKERS}" -rxs tests/ || ([ $? = 5 ] && exit 0 || exit $?)'
2830

2931
[testenv:py38-multi-gpu]
3032
; Runs in: Github Actions

0 commit comments

Comments
 (0)