-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Test older versions of pandas, torch (#2682)
* test pandas, torch 1.X * add yarn command testMinimumPythonReqs * use torch 1.12 to avoid libcublas errors * update jobs * Update extensions/positron-python/package.json Co-authored-by: Wasim Lorgat <[email protected]> Signed-off-by: Isabel Zimmerman <[email protected]> * try out noxfile * install nox into ci * rearrange nox call * split into own action * vendor * only run 1x rather than 4x * Delete min-supported.txt Signed-off-by: Isabel Zimmerman <[email protected]> * min matrix * Update .github/workflows/positron-python-ci.yml Co-authored-by: Wasim Lorgat <[email protected]> Signed-off-by: Isabel Zimmerman <[email protected]> * updates from review --------- Signed-off-by: Isabel Zimmerman <[email protected]> Co-authored-by: Wasim Lorgat <[email protected]>
- Loading branch information
1 parent
9815efe
commit 5b253a2
Showing
4 changed files
with
54 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# | ||
# Copyright (C) 2024 Posit Software, PBC. All rights reserved. | ||
# | ||
|
||
|
||
import nox | ||
|
||
|
||
@nox.session() | ||
@nox.parametrize('pandas', ['1.5.3']) | ||
@nox.parametrize('torch', ['1.12.1']) | ||
def test_minimum_reqs(session, pandas, torch): | ||
session.install("-r", "python_files/positron/pinned-test-requirements.txt") | ||
session.install('--force-reinstall', f'pandas=={pandas}') | ||
session.install('--force-reinstall', f'torch=={torch}') | ||
|
||
if session.posargs: | ||
test_args = session.posargs | ||
else: | ||
test_args = [] | ||
|
||
session.run('pytest', *test_args) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 0 additions & 7 deletions
7
extensions/positron-python/python_files/positron/data-science-requirements.txt
This file was deleted.
Oops, something went wrong.