This repository demonstrates how to integrate GitHub Actions to:
- Upon a new commit -
- Automatically authenticate
wandb
(Weights and Biases) using a custom GitHub secret. - Automatically train a small Random Forest Regressor model on the wine quality dataset.
- Automatically log the training and other important model metrics to
wandb
. - Cache Python dependencies so that old dependencies do not get installed each time a run is triggered.
- Generate a
metrics.csv
file after a run is successfully completed.
- Automatically authenticate
- Upon a new pull request -
- Fetch the latest
wandb
run URL and comment that on the PR.
- Fetch the latest
This video by DVCorg helped me a lot to clear the initial concepts regarding GitHub Actions.