Home

Awesome

Example cml-runner workflow

This repository contains a sample project using CML to provision and launch a small EC2 instance and run a machine learning workflow on the instance:

The key file enabling these actions is .github/workflows/cml.yaml.

Secrets and environmental variables

In this example, .github/workflows/cml.yaml contains three environmental variables that are stored as repository secrets.

SecretDescription
PERSONAL_ACCESS_TOKENYou must create a personal access token with repository and workflow permissions.
AWS_ACCESS_KEY_IDAWS credential for accessing S3 storage
AWS_SECRET_ACCESS_KEYAWS credential for accessing S3 storage

The cml-runner function currently works with AWS and Azure cloud service providers. For Azure, you'll want to substitute the AWS secrets for Azure's credential variables.