mirror of
https://github.com/actions/setup-python.git
synced 2025-12-15 21:12:36 +00:00
update with a test
This commit is contained in:
parent
b2cf62bdce
commit
4a23520ba4
1 changed files with 1 additions and 1 deletions
|
|
@ -9,7 +9,7 @@ export async function cleanPipPackages() {
|
||||||
// Use a shell so we can pipe the output of pip freeze into xargs
|
// Use a shell so we can pipe the output of pip freeze into xargs
|
||||||
await exec('bash', [
|
await exec('bash', [
|
||||||
'-c',
|
'-c',
|
||||||
'python -m pip freeze | xargs python -m pip uninstall'
|
'test $(python3 -m pip freeze | wc -l) -gt 0 && python3 -m pip freeze | xargs python3 -m pip uninstall -y'
|
||||||
]);
|
]);
|
||||||
core.info('Successfully cleaned up pip packages');
|
core.info('Successfully cleaned up pip packages');
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue