Skip to content

Commit dcb1e89

Browse files
committed
Conditional tox env selector based on GH action
Signed-off-by: Sylvain Hellegouarch <[email protected]>
1 parent 75f9fcd commit dcb1e89

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed

.github/workflows/python-package.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
- name: Install dependencies
2828
run: |
2929
python -m pip install --upgrade pip
30-
python -m pip install flake8 pytest tox CherryPy gevent tornado
30+
python -m pip install flake8 pytest tox tox-gh-actions CherryPy gevent tornado
3131
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
3232
- name: Lint with flake8
3333
run: |
@@ -37,4 +37,4 @@ jobs:
3737
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
3838
- name: Test with tox
3939
run: |
40-
tox
40+
tox -e

tox.ini

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,19 @@
66
[tox]
77
envlist = py27,py36,py37,py38,py39,py310,py311,py312
88

9+
[gh-actions]
10+
python =
11+
2.7: py27
12+
3.6: py36
13+
3.7: py37
14+
3.8: py38
15+
3.9: py39
16+
3.10: py310
17+
3.11: py311
18+
3.12: py312
19+
920
[testenv]
1021
commands = pytest
1122
deps =
1223
py27: -r requirements/py2kreqs.txt
13-
{py36,py37,py38,py39,py310,py311,py312}: -r requirements/py3kreqs.txt
24+
{py36,py37,py38,py39,py310,py311,py312}: -r requirements/py3kreqs.txt

0 commit comments

Comments
 (0)