Skip to content

Commit

Permalink
BUILD: move test dependencies to tox base testenv
Browse files Browse the repository at this point in the history
  • Loading branch information
j-ittner committed Jun 21, 2024
1 parent c8c5963 commit 8b0a9f2
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = py3
envlist = py3, py3-custom-deps
skip_missing_interpreters = true
isolated_build = true
minversion = 3.11
Expand Down Expand Up @@ -28,23 +28,26 @@ commands =
# run the tests
pytest test/ -s

[testenv:py3-custom-deps]
deps =
matplotlib{env:ARTKIT_V_MATPLOTLIB}
pandas{env:ARTKIT_V_PANDAS}
fluxus{env:ARTKIT_V_FLUXUS}
gamma-pytools{env:ARTKIT_V_GAMMA_PYTOOLS}
typing_inspect{env:ARTKIT_V_TYPING_INSPECT}
# optional dependencies, for testing only - mark as extras with a `:` suffix
# optional dependencies, only defined for min/max tests otherwise not restricted
deps=
aiohttp{env:ARTKIT_V_AIOHTTP:}
anthropic{env:ARTKIT_V_ANTHROPIC:}
google-generativeai{env:ARTKIT_V_GOOGLE_GENERATIVEAI:}
groq{env:ARTKIT_V_GROQ:}
openai{env:ARTKIT_V_OPENAI:}
pyyaml{env:ARTKIT_V_PYYAML:}
torch{env:ARTKIT_V_PYTORCH:}
pytorch{env:ARTKIT_V_PYTORCH:}
transformers{env:ARTKIT_V_TRANSFORMERS:}

[testenv:py3-custom-deps]
# force specific versions of 3rd party libraries for matrix tests
deps =
matplotlib{env:ARTKIT_V_MATPLOTLIB}
pandas{env:ARTKIT_V_PANDAS}
fluxus{env:ARTKIT_V_FLUXUS}
gamma-pytools{env:ARTKIT_V_GAMMA_PYTOOLS}
typing_inspect{env:ARTKIT_V_TYPING_INSPECT}

[flake8]

# Max line length for code
Expand Down

0 comments on commit 8b0a9f2

Please sign in to comment.