ibm-granite-community / granite-snack-cookbook

Granite Snack Cookbook -- easily consumable recipes (python notebooks) that showcase the capabilities of the Granite models
Creative Commons Attribution 4.0 International
72 stars 17 forks source link

testing: Restructure workflows to use a parameterized, reusable workflow #66

Closed bjhargrave closed 3 weeks ago

bjhargrave commented 3 weeks ago

PR Checklist

We update the ci build for testing notebooks to use a reusable, parameterized workflow. This workflow uses a matrix to enable parallel testing of notebooks across platforms and python versions. The txt files with notebook lists are replaced by jobs in the top-level workflow file which specify a list. The workflows will test any listed notebook which is changed by the pull request or push to main.

Dependabot configuration is also added to help us keep out GitHub action dependencies up-to-date.

bjhargrave commented 3 weeks ago

If we are happy with these changes, I can update the other repos similarly. I would then look to centralize the reusable workflow in one repo such as the util repo.

bjhargrave commented 3 weeks ago

The tests don't succeed since the PR run does not have access to the secrets needed to pass the test. They pass on my fork where I have set up the secret for the replicate api token.

https://github.com/bjhargrave/granite-snack-cookbook/actions/runs/11593534779?pr=2

Once we merge this PR and confirm it passes, we can follow up with another PR to remove the existing workflows.