Skip to content

Commit cd2c8c7

Browse files
authored
Fix tox testing (#124)
See also: tox-dev/tox#2730 Closes #123
2 parents 1b7c6c7 + fe0c2c7 commit cd2c8c7

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

.github/workflows/test.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ jobs:
3131
python-version: '3.6'
3232
- django-version: 'main'
3333
python-version: '3.7'
34+
- django-version: 'main'
35+
python-version: '3.8'
36+
- django-version: 'main'
37+
python-version: '3.9'
3438

3539
steps:
3640
- uses: actions/checkout@v3
@@ -61,7 +65,7 @@ jobs:
6165
6266
- name: Tox tests
6367
run: |
64-
tox -v
68+
tox -v run
6569
env:
6670
DJANGO: ${{ matrix.django-version }}
6771

tox.ini

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
[tox]
2-
skipsdist = true
32
usedevelop = true
43
envlist =
54
py{36,37,38,39,310}-dj32
65
py{38,39,310}-dj40
7-
py{38,39,310,311}-dj{41,main}
6+
py{38,39,310,311}-dj41
7+
py{310,311}-djmain
88

99
[gh-actions]
1010
python =
@@ -33,6 +33,6 @@ deps =
3333
setenv =
3434
DJANGO_SETTINGS_MODULE=simple_menu.test_settings
3535
commands =
36-
coverage run {envbindir}/django-admin test -v2 {posargs:simple_menu}
36+
coverage run -m django test -v2 {posargs:simple_menu}
3737
coverage report
3838
coverage xml

0 commit comments

Comments
 (0)