Skip to content

Commit 457f3fe

Browse files
committed
Install torch cpu version for tests
1 parent b802b83 commit 457f3fe

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

noxfile.py

Lines changed: 5 additions & 0 deletions
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)