april-tools / cirkit

a python framework to build, learn and reason about probabilistic circuits and tensor networks
https://cirkit-docs.readthedocs.io/en/latest/
GNU General Public License v3.0
71 stars 1 forks source link

adjust pip caching in workflow and add mypy cache #28

Closed lkct closed 1 year ago

lkct commented 1 year ago

The pip cache now only checks only pyproject.toml, and is shared by all linting tasks. The tasks all depend on cirkit[lint], and the editable-installed packages do not go into the cache dir. Thus the single cache key would work. (Although changing other configs will also make the cache obsolete unnecessarily.)

.mypy_cache is added to the caches using another cache action to save time on stdlibs and dependencies.