File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66 pull_request :
77 paths :
88 - " codecarbon/**"
9+ - " test/**"
10+ - " pyproject.toml"
11+ - " uv.lock"
12+ push :
13+ branches : [master]
14+ paths :
15+ - " codecarbon/**"
16+ - " test/**"
917 - " pyproject.toml"
1018 - " uv.lock"
1119
2836 - name : Test package
2937 run : uv run --python ${{ matrix.python-version }} task test-coverage
3038 - name : Upload coverage to Codecov
31- uses : codecov/codecov-action@v5
39+ uses : codecov/codecov-action@671740ac38dd9b0130fbe1cec585b89eea48d3de # v5
3240 with :
3341 token : ${{ secrets.CODECOV_TOKEN }}
3442
Original file line number Diff line number Diff line change @@ -155,7 +155,7 @@ mypy-check = "mypy -m codecarbon --ignore-missing-imports --no-strict-optional -
155155lint = " black --check --diff . && ruff check . && mypy ."
156156format = " black . && ruff check --fix --exit-non-zero-on-fix ."
157157test-package = " CODECARBON_ALLOW_MULTIPLE_RUNS=True pytest --ignore=tests/test_viz_data.py -vv -m 'not integ_test' tests/"
158- test-coverage = " CODECARBON_ALLOW_MULTIPLE_RUNS=True pytest --cov=codecarbon --cov-report=xml --ignore=tests/test_viz_data.py -vv -m 'not integ_test' tests/"
158+ test-coverage = " CODECARBON_ALLOW_MULTIPLE_RUNS=True pytest --cov --cov-report=xml --ignore=tests/test_viz_data.py -vv -m 'not integ_test' tests/"
159159test-package-integ = " CODECARBON_ALLOW_MULTIPLE_RUNS=True python -m pytest -vv tests/"
160160docs = " cd docs/edit && make docs"
161161carbonboard = " python codecarbon/viz/carbonboard.py"
@@ -174,3 +174,11 @@ version_pattern = "MAJOR.MINOR.PATCH[_TAGNUM]"
174174
175175[tool .pytest .ini_options ]
176176pythonpath = " ."
177+
178+ [tool .coverage .run ]
179+ source = [
180+ " codecarbon" ,
181+ ]
182+ omit = [
183+ " codecarbon/viz/*" ,
184+ ]
You can’t perform that action at this time.
0 commit comments