tweag / monad-bayes

A library for probabilistic programming in Haskell.
MIT License
404 stars 62 forks source link

Fix cache #274

Closed turion closed 1 year ago

turion commented 1 year ago

Also tries to run dependabot on common nix actions located in .github/actions. This was previously not the case because dependabot restricts itself to .github/workflows by default. Hopefully fixes #273 .

turion commented 1 year ago

It didn't work yet:

Post job cleanup.
Post job cleanup.
Cachix: push
  Pushing is disabled as signingKey nor authToken are set (or are empty?) in your YAML file.

See https://github.com/tweag/monad-bayes/actions/runs/5001514340/jobs/8961799119?pr=274 or https://github.com/tweag/monad-bayes/actions/runs/5001514340/jobs/8961798938?pr=274#step:7:4

turion commented 1 year ago

Either the secret is not set properly in the GitHub repo settings, or the inputs are not passed around correctly.

turion commented 1 year ago

statistics has flaky tests as well: https://github.com/tweag/monad-bayes/actions/runs/5003767048/jobs/8965461209?pr=274 A cache will probably improve the situation.

turion commented 1 year ago

With generous help from Domen Kozar, I found that the cache cannot be populated when the PR comes from a fork, because my repo doesn't have the secrets available. Closing and reopening from a branch within this repo.