Skip to content
This repository has been archived by the owner on Jun 17, 2024. It is now read-only.

Added dashboard file and comment-image action #26

Draft
wants to merge 12 commits into
base: Dev
Choose a base branch
from

Conversation

lydia-rc
Copy link

@lydia-rc lydia-rc commented Aug 5, 2022

The objective is to automatically comment a dashboard, which tracks the carbon intensity of a resource across multiple builds, as a static image on each pull request.

To complete the dashboard:

  • Each time carbon_measure.go runs, append averageKwh and Totalco2perkwh to a csv file
  • Keep track of the resources used in a csv
  • Replace the placeholder values in each subplot with the columns from a csv

To complete image commenting on PRs:

  • Write the dashboard figure as a static image to a folder in .github/data
  • Put the link to the raw format of the .github/data folder into comment-image.yml

Additional considerations:

  • Storing the images in a .github/data folder might not be a sustainable solution.
  • The figure in dashboard.py can be exported as an interactive html file. This could be useful for including the figure in a github page.

@Willmish
Copy link
Contributor

Willmish commented Aug 8, 2022

Thanks for opening this @lydia-rc! A good starting point for further visualisation of the action's output

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants