mirror of
https://github.com/AllSpiceIO/carbon-emission-calculator.git
synced 2024-12-03 10:15:36 +00:00
An AllSpice Actions add-on for calculating the carbon emission of a PCBA given a data source with component data figures
|
||
---|---|---|
.github | ||
.gitignore | ||
action.yml | ||
Dockerfile | ||
entrypoint.py | ||
LICENSE | ||
pyproject.toml | ||
README.md | ||
requirements-test.txt | ||
requirements.txt |
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.