An AllSpice Actions add-on for calculating the carbon emission of a PCBA given a data source with component data figures
Go to file
Kyle Dumont 67f40a0a15
Merge pull request #5 from AllSpiceIO/dependabot/pip/ruff-0.6.3
Bump ruff from 0.4.7 to 0.6.3
2024-09-01 16:16:12 -04:00
.github Baseline commit of feature complete add-on with CSV data source 2024-07-22 12:21:50 -05:00
.gitignore Baseline commit of feature complete add-on with CSV data source 2024-07-22 12:21:50 -05:00
Dockerfile Baseline commit of feature complete add-on with CSV data source 2024-07-22 12:21:50 -05:00
LICENSE Initial commit 2024-07-22 12:08:49 -05:00
README.md Baseline commit of feature complete add-on with CSV data source 2024-07-22 12:21:50 -05:00
action.yml Baseline commit of feature complete add-on with CSV data source 2024-07-22 12:21:50 -05:00
entrypoint.py Strip and replace cleanup for str to float conversion 2024-07-22 14:47:42 -05:00
pyproject.toml Baseline commit of feature complete add-on with CSV data source 2024-07-22 12:21:50 -05:00
requirements-test.txt Bump ruff from 0.4.7 to 0.6.3 2024-09-01 19:32:27 +00:00
requirements.txt Baseline commit of feature complete add-on with CSV data source 2024-07-22 12:21:50 -05:00

README.md

Carbon Emissions Calculator for PCBA

An actions repository for demonstrating the calculation of the sum carbon emission for a PCBA given an input BOM and a data source with component emissions data

Usage

Add the following step to your actions:

- name: Generate carbon emissions report for a PCBA given its BOM
  uses: https://hub.allspice.io/Actions/carbon-emission-calculator@v1
  with:
    bom_file: bom.csv

Input BOM

The input BOM to this Action is assumed to be generated from the py-allspice BOM generation utility. The column names referenced and used in this Action script assume the naming convention as populated by the py-allspice BOM generation function. The user is to adjust the expected column positions and naming conventions when using their own BOM file input.

A typical workflow is to use the BOM generation Actions add-on to generate the BOM first, and use the generated BOM as an input to this Action.