microsoft / syntheseus

Package for Retrosynthetic Planning
https://microsoft.github.io/syntheseus/
MIT License
111 stars 14 forks source link

Free extra disk space for the models tests #68

Closed kmaziarz closed 7 months ago

kmaziarz commented 7 months ago

Our models tests download the default single-step model weights, which takes ~10GB of disk space. This is roughly half of the space that is normally available on GitHub Actions runners, and (taken together with all the packages we install) it recently started hitting the disk space limit.

This PR adds an extra step based on jlumbroso/free-disk-space to the models tests. This step frees extra disk space by deleting large pre-existing files present on the default image (e.g. packages related to android, haskell, .NET, etc) as well as optimizing how the disk is partitioned. This saves ~24 GB of disk space (see logs in this job), more than doubling what we had previously.