Skip to content

Commit 2e40758

Browse files
committed
GitHub Action to run tox
1 parent 113ea51 commit 2e40758

File tree

2 files changed

+25
-7
lines changed

2 files changed

+25
-7
lines changed

.github/workflows/tox.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: tox
2+
on:
3+
push:
4+
branches: [master]
5+
pull_request:
6+
branches: [master]
7+
jobs:
8+
tox:
9+
strategy:
10+
fail-fast: false
11+
max-parallel: 6
12+
matrix:
13+
python: ['3.7', '3.8', '3.9', '3.10', '3.11', 'pypy3.9']
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v3
17+
- uses: actions/setup-python@v4
18+
with:
19+
python-version: ${{ matrix.python }}
20+
- run: pip install --upgrade "pip < 23.0"
21+
- run: pip install tox
22+
- run: tox -e py

tox.ini

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,13 @@
11
[tox]
2-
envlist = py27,py34,py35,py36,py37
2+
envlist = py37,py38,py39,py310,py311,pypy3
33

44
[base]
55
deps =
6+
kazoo
67
mock
78
requests>=2.0
8-
kazoo
99

1010
[testenv]
11+
allowlist_externals = {toxinidir}/run-tests.py
1112
deps = {[base]deps}
1213
commands = {toxinidir}/run-tests.py
13-
14-
[testenv:py27]
15-
deps =
16-
faulthandler
17-
{[base]deps}

0 commit comments

Comments
 (0)