Skip to content

Commit 3278d44

Browse files
committed
fix tox command
1 parent 4a7c41d commit 3278d44

File tree

3 files changed

+23
-9
lines changed

3 files changed

+23
-9
lines changed

.github/workflows/tests.yml

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
with:
3030
args: tox
3131

32-
build:
32+
tests:
3333
needs: lint
3434
runs-on: ubuntu-latest
3535

@@ -46,10 +46,24 @@ jobs:
4646
steps:
4747
- uses: actions/checkout@v2
4848

49-
- name: tox ${{ matrix.toxenv }}
50-
uses: docker://snakepacker/python:all
49+
- name: Setup python${{ matrix.python }}
50+
uses: actions/setup-python@v2
51+
with:
52+
python-version: "${{ matrix.python }}"
53+
54+
- name: Install tox
55+
run: python -m pip install tox
56+
57+
- name: Prepare tox env
58+
run: tox --notest
5159
env:
5260
TOXENV: ${{ matrix.toxenv }}
61+
62+
- name: Run tox
63+
run: tox
64+
env:
65+
COVERALLS_PARALLEL: 'true'
5366
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
54-
with:
55-
args: tox
67+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
68+
FORCE_COLOR: yes
69+
TOXENV: ${{ matrix.toxenv }}

pytest.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
python_files = test_*
33
python_functions = test_*
44
python_classes = TestSuite*
5-
;asyncio_mode=auto
5+
asyncio_mode=auto

tox.ini

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
envlist = lint,mypy,py3{7,8,9,10}
33

44
[testenv]
5-
passenv = COVERALLS_* AMQP_*
5+
passenv = COVERALLS_* AMQP_* GITHUB_* FORCE_COLOR
66

77
extras =
88
testing
99

1010
commands=
11-
py.test -vv -p no:asyncio \
11+
py.test -vv \
1212
--cov=wsrpc_aiohttp \
1313
--cov-report=term-missing \
1414
--doctest-modules \
@@ -21,7 +21,7 @@ deps =
2121
pylava
2222

2323
commands=
24-
pylava -o pylava.ini .
24+
pylava -o pylava.ini wsrpc_aiohttp tests
2525

2626
[testenv:mypy]
2727
usedevelop = true

0 commit comments

Comments
 (0)