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 ea4bd03
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ jobs:
poetry run python -m pip install tox-gh-actions
poetry install
- name: Test with tox
run: poetry run tox
run: poetry run tox -v
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"

gcs: poetry install -E gcs
gcs: pytest -v -m "gcs"

core: pytest -v -m "not gcs and not s3"

[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 ea4bd03

Please sign in to comment.