Skip to content

Commit

Permalink
reorganize tox
Browse files Browse the repository at this point in the history
  • Loading branch information
Meriem JEBALI authored and Meriem JEBALI committed Dec 11, 2024
1 parent 75b41c0 commit 3491580
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,13 @@ deps =
pytest-cov
google-auth-oauthlib
google-api-python-client
torch
torch
depends =
{core38,transformers}: clean
report: core38,transformers
extras = transformers
report: core38
extras = transformers



[testenv:core38]
deps={[testenv]deps}
Expand All @@ -31,6 +33,10 @@ commands={[testenv]commands}
deps={[testenv]deps}
commands=pytest tests

[testenv:core311]
deps={[testenv]deps}
commands=pytest tests

[testenv:clean]
deps = coverage[toml]
skip_install = true
Expand All @@ -39,7 +45,7 @@ commands = coverage erase
[testenv:transformers]
description = run unit tests with the transformers dependency
deps={[testenv]deps}
commands = pytest tests/huggingface --cov --cov-append --cov-report xml
commands = pytest tests/huggingface
extras = transformers

[testenv:report]
Expand Down

0 comments on commit 3491580

Please sign in to comment.