Skip to content

Commit 7cedb1d

Browse files
committed
fix tox
1 parent 0315a3e commit 7cedb1d

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,4 @@ jobs:
2727
poetry run python -m pip install tox-gh-actions
2828
poetry install
2929
- name: Test with tox
30-
run: poetry run tox
30+
run: poetry run tox -v

tox.ini

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,18 @@
11
[tox]
2-
envlist = py{38,39,310,311},yapf,isort,flake8,mypy
2+
envlist = py{38,39,310,311}-{core,s3,gcs},yapf,isort,flake8,mypy
33
isolated_build = true
44

55
[testenv]
6-
allowlist_externals = coverage
6+
allowlist_externals = poetry, pytest
77
skip_install = true
8-
commands = coverage run -m unittest discover -s test
8+
commands =
9+
s3: poetry install -E s3
10+
s3: pytest -v -m "s3"
11+
12+
gcs: poetry install -E gcs
13+
gcs: pytest -v -m "gcs"
14+
15+
core: pytest -v -m "not gcs and not s3"
916

1017
[testenv:yapf]
1118
allowlist_externals = yapf

0 commit comments

Comments
 (0)