Skip to content

Commit 9c2382a

Browse files
committed
Add downstream test for pyo3
1 parent 341eaae commit 9c2382a

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

mx.graalpython/downstream_tests.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,19 @@ def downstream_test_virtualenv(graalpy):
139139
], cwd=src, env=env)
140140

141141

142+
@downstream_test('pyo3')
143+
def downstream_test_pyo3(graalpy):
144+
testdir = Path('upstream-tests').absolute()
145+
shutil.rmtree(testdir, ignore_errors=True)
146+
testdir.mkdir(exist_ok=True)
147+
run(['git', 'clone', 'https://github.com/PyO3/pyo3.git', '-b', 'main'], cwd=testdir)
148+
src = testdir / 'pyo3'
149+
venv = src / 'venv'
150+
run([graalpy, '-m', 'venv', str(venv)])
151+
run_in_venv(venv, ['pip', 'install', 'nox'])
152+
run_in_venv(venv, ['nox', '-s', 'test-py'], cwd=src)
153+
154+
142155
def run_downstream_test(python, project):
143156
DOWNSTREAM_TESTS[project](python)
144157

0 commit comments

Comments
 (0)