Skip to content

Commit a195c2c

Browse files
committed
update: test-gpu
1 parent d916c06 commit a195c2c

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

.circleci/config.yml

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -105,23 +105,31 @@ jobs:
105105
pyenv install -f << parameters.python_version >>
106106
pyenv global << parameters.python_version >>
107107
108+
- run:
109+
name: Create virtual environment
110+
command: python -m venv venv
111+
112+
- run:
113+
name: Activate virtual environment
114+
command: . venv/bin/activate
115+
108116
- run:
109117
name: Setup pip
110-
command: python -m pip install --upgrade pip setuptools wheel
118+
command: venv/bin/python -m pip install --upgrade pip setuptools wheel
111119

112120
- run:
113121
name: Install packages
114-
command: pip install .[dev]
122+
command: venv/bin/pip install .[dev]
115123

116124
- run:
117125
name: Install cuda related dependencies
118126
command: |
119-
pip install pylibcugraph-cu12 --extra-index-url https://pypi.nvidia.com
120-
pip install nx-cugraph-cu12 --extra-index-url https://pypi.nvidia.com
127+
venv/bin/pip install pylibcugraph-cu12 --extra-index-url https://pypi.nvidia.com
128+
venv/bin/pip install nx-cugraph-cu12 --extra-index-url https://pypi.nvidia.com
121129
122130
- run:
123131
name: Run local gpu tests
124-
command: pytest tests/test.py -k "test_gpu" --run-gpu-tests
132+
command: venv/bin/pytest tests/test.py -k "test_gpu" --run-gpu-tests
125133

126134
workflows:
127135
version: 2

0 commit comments

Comments
 (0)