Skip to content

Commit a818120

Browse files
committed
Run unit test with Pytorch CPU instead of GPU
This is so tests can be run without need for a GPU Signed-off-by: Martin Hickey <[email protected]>
1 parent 31bc3f6 commit a818120

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.github/workflows/test.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,6 @@ permissions:
3535

3636
jobs:
3737
test:
38-
# Disable until runner with Nvidia GPU available
39-
if: false
4038
name: "test: ${{ matrix.python }} on ${{ matrix.platform }}"
4139
runs-on: "${{ matrix.platform }}"
4240
strategy:

tox.ini

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ minversion = 4.4
44

55
[testenv]
66
description = run tests (unit)
7+
# Use PyTorch CPU build instead of CUDA build in test envs
8+
setenv =
9+
PIP_EXTRA_INDEX_URL=https://download.pytorch.org/whl/cpu
710
extras =
811
dev
912
package = wheel

0 commit comments

Comments
 (0)