laike9m / pdir2

Pretty dir() printing with joy:beer:
MIT License
1.32k stars 47 forks source link

Cache __pypackages__ in Github Action to speed up CI. #71

Closed laixintao closed 2 years ago

laixintao commented 2 years ago

PMD doesn't need to download everything again since all of them matches pdm.lock already, the Python3.7 on ubuntu latest only take half the time now: 2m20s before -> 1m now.

laixintao commented 2 years ago

The first run without cache: https://github.com/laike9m/pdir2/actions/runs/2587339268

image

2nd run with cache: https://github.com/laike9m/pdir2/runs/7124440028

image
laike9m commented 2 years ago

This is really huge improvements! Thanks for spotting it.

Have you tested it that the modified tox.ini also works locally?

laixintao commented 2 years ago
image

Yes