Skip to content

Commit

Permalink
Added Python 3.13 to tox.ini, updated commands to run coverage and ad…
Browse files Browse the repository at this point in the history
…ded some coverage configuration.
  • Loading branch information
Sigurd-Borge committed Oct 18, 2024
1 parent 2fce1bd commit 9af2da3
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 8 deletions.
10 changes: 8 additions & 2 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
[coverage:run]
[run]
# needed to not have absolute path in coverage.xml
relative_files = True
relative_files = True

[report]
fail_under = 80

[xml]
output = coverage.xml
1 change: 0 additions & 1 deletion tests/integration/test_web_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
from antares.model.st_storage import STStorageGroup, STStorageMatrixName, STStorageProperties
from antares.model.study import create_study_api
from antares.model.thermal import ThermalClusterGroup, ThermalClusterProperties

from integration.antares_web_desktop import AntaresWebDesktop


Expand Down
10 changes: 5 additions & 5 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
[tox]
env_list =
py3.{9,10,11,12}-test
py3.{9,10,11,12,13}-test
lint

[testenv]
deps =
-r requirements-dev.txt

[testenv:py3.{9,10,11,12}-test]
description = run the tests with pytest
[testenv:py3.{9,10,11,12,13}-test]
description = run the tests with pytest and coverage
commands =
pytest tests/antares {posargs}
py3.{9,10,11,13}-test: pytest tests/antares {posargs}
py3.12-test: pytest tests/antares --cov=src/antares --cov-report=xml

[testenv:lint]
description = linting with ruff
Expand All @@ -21,4 +22,3 @@ commands =
ruff check --fix src/ tests/ {posargs}
ruff format src/ tests/ {posargs}
mypy {posargs}

0 comments on commit 9af2da3

Please sign in to comment.