Skip to content

Commit 6211a10

Browse files
committed
Install torch cpu version for tests
1 parent 88d0de4 commit 6211a10

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

noxfile.py

+5
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@ def lint(session):
1515

1616
@nox.session(python=["3.8", "3.9", "3.10", "3.11", "3.12"])
1717
def tests(session):
18+
session.install(
19+
'torch==2.2.1',
20+
'torchvision',
21+
'--index-url', 'https://download.pytorch.org/whl/cpu'
22+
)
1823
session.install('.')
1924
session.install('pytest')
2025
session.install('pytest-mock')

0 commit comments

Comments
 (0)