Skip to content

Commit

Permalink
fix tox
Browse files Browse the repository at this point in the history
  • Loading branch information
daisuke-yokomoto committed Dec 14, 2023
1 parent e553dae commit 65c6c14
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,11 +1,18 @@
[tox]
envlist = py{38,39,310,311},yapf,isort,flake8,mypy
envlist = py{38,39,310,311}-{core,s3,gcs},yapf,isort,flake8,mypy
isolated_build = true

[testenv]
allowlist_externals = coverage
allowlist_externals = poetry, pytest
skip_install = true
commands = coverage run -m unittest discover -s test
commands =
s3: poetry install -E s3
s3: pytest -v -m "s3" test/test_s3_config.py test/test_file_processor.py

gcs: poetry install -E gcs
gcs: pytest -v -m "gcs" test/test_gcs_config.py test/test_file_processor.py

core: pytest -v -m "not gcs and not s3" test/test_gcs_config.py test/test_file_processor.py

[testenv:yapf]
allowlist_externals = yapf
Expand All @@ -29,7 +36,7 @@ commands = mypy gokart test {posargs}

[gh-actions]
python =
3.8: py38
3.9: py39
3.10: py310
3.11: py311
3.8: py38-{core,s3,gcs}
3.9: py39-{core,s3,gcs}
3.10: py310-{core,s3,gcs}
3.11: py311-{core,s3,gcs}

0 comments on commit 65c6c14

Please sign in to comment.