mirror of
https://github.com/actions/setup-python.git
synced 2025-07-01 23:23:46 +00:00
try to allow pypy3, pypy3.6 or pypy3.7 syntax
This commit is contained in:
parent
41b7212b16
commit
0ed4f287d5
4 changed files with 30 additions and 20 deletions
|
@ -89,10 +89,10 @@ describe('Finder tests', () => {
|
|||
});
|
||||
|
||||
it('Finds PyPy if it is installed', async () => {
|
||||
const pythonDir: string = path.join(toolDir, 'PyPy', '2.0.0', 'x64');
|
||||
const pythonDir: string = path.join(toolDir, 'PyPy', '3.7.4', 'x64');
|
||||
await io.mkdirP(pythonDir);
|
||||
fs.writeFileSync(`${pythonDir}.complete`, 'hello');
|
||||
// This will throw if it doesn't find it in the cache (because no such version exists)
|
||||
await finder.findPythonVersion('pypy2', 'x64');
|
||||
await finder.findPythonVersion('pypy3', 'x64');
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue