Skip to content

Remove duplicate PUE #823

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Apr 17, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions .github/workflows/test-package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: test-package

on:
pull_request:
paths:
- "codecarbon/**"
- "pyproject.toml"
- "requirements.txt"

jobs:
python-test:
runs-on: ubuntu-24.04
strategy:
matrix:
python-version: ["3.9", "3.12", "3.13"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install hatch==1.13.0 hatchling==1.25.0
- name: Test package
run: |
hatch run +py=${{ matrix.python-version }} test:package
3 changes: 1 addition & 2 deletions codecarbon/emissions_tracker.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""
Contains implementations of the Public facing API: EmissionsTracker,
OfflineEmissionsTracker and @track_emissions
OfflineEmissionsTracker, context manager and decorator @track_emissions
"""

import dataclasses
Expand Down Expand Up @@ -1126,7 +1126,6 @@ def wrapped_fn(*args, **kwargs):
log_level=log_level,
on_csv_write=on_csv_write,
logger_preamble=logger_preamble,
pue=pue,
country_iso_code=country_iso_code,
region=region,
cloud_provider=cloud_provider,
Expand Down
Loading