Include Python version in pip cache key (#303)
This commit is contained in:
1 parent
156361d073
commit
ba33a692f1
4 files changed
+13
-13
No files matched your search
@@ -92,13 +92,9 @@ describe('restore-cache', () => {
|
||||
dependencyFile
|
||||
);
|
||||
await cacheDistributor.restoreCache();
|
||||
let pythonKey = '';
|
||||
if (packageManager === 'pipenv') {
|
||||
pythonKey = `python-${pythonVersion}-`;
|
||||
}
|
||||
|
||||
expect(infoSpy).toHaveBeenCalledWith(
|
||||
`Cache restored from key: setup-python-${process.env['RUNNER_OS']}-${pythonKey}${packageManager}-${fileHash}`
|
||||
`Cache restored from key: setup-python-${process.env['RUNNER_OS']}-python-${pythonVersion}-${packageManager}-${fileHash}`
|
||||
);
|
||||
}
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user