Skip to content

Commit

Permalink
chore: change tolerance for coverage report fail to fail under 45
Browse files Browse the repository at this point in the history
  • Loading branch information
frodehk committed Nov 28, 2024
1 parent fd26a99 commit efb1011
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/lib-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
id: total
if: matrix.python-version == '3.11'
run: |
poetry run python -m coverage report --fail-under 50
poetry run python -m coverage report --fail-under 45
poetry run python -m coverage html -d build/
poetry run python -m coverage json -o build/coverage.json
echo '# Code Coverage Report\n See the index.html for a more detailed report.\n' >> build/README.md
Expand Down
13 changes: 2 additions & 11 deletions tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,36 +1,27 @@
import json
from io import StringIO
from pathlib import Path
from typing import Optional, cast, Union
from typing import Optional, cast


import pytest
import yaml

from libecalc.application.energy_calculator import EnergyCalculator
from libecalc.application.graph_result import GraphResult
from libecalc.common.math.numbers import Numbers
from libecalc.common.time_utils import Frequency, Periods
from libecalc.common.variables import VariablesMap
from libecalc.common.time_utils import Frequency
from libecalc.examples import advanced, simple
from libecalc.fixtures import YamlCase
from libecalc.fixtures.cases import (
all_energy_usage_models,
consumer_system_v2,
ltp_export,
)
from libecalc.presentation.exporter.configs.configs import LTPConfig
from libecalc.presentation.exporter.dto.dtos import FilteredResult, QueryResult
from libecalc.presentation.exporter.infrastructure import ExportableGraphResult
from libecalc.presentation.json_result.mapper import get_asset_result
from libecalc.presentation.yaml.configuration_service import ConfigurationService
from libecalc.presentation.yaml.model import YamlModel
from libecalc.presentation.yaml.resource_service import ResourceService
from libecalc.presentation.yaml.yaml_entities import MemoryResource, ResourceStream
from libecalc.presentation.yaml.yaml_models.pyyaml_yaml_model import PyYamlYamlModel
from libecalc.presentation.yaml.yaml_models.yaml_model import ReaderType, YamlConfiguration, YamlValidator
from libecalc.presentation.yaml.yaml_types.components.yaml_asset import YamlAsset
from libecalc.presentation.yaml.yaml_types.components.yaml_installation import YamlInstallation
from libecalc.testing.dto_energy_model import DTOEnergyModel
from libecalc.testing.yaml_builder import (
YamlAssetBuilder,
Expand Down
2 changes: 0 additions & 2 deletions tests/libecalc/presentation/exporter/conftest.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import pytest
from datetime import datetime
from typing import Optional, Union

from libecalc.common.time_utils import Period
from libecalc.presentation.yaml.yaml_entities import MemoryResource
from libecalc.testing.yaml_builder import (
YamlFuelTypeBuilder,
Expand Down

0 comments on commit efb1011

Please sign in to comment.