Skip to content

Commit ca8b7d5

Browse files
committed
Update installation commands for dependency groups in tox.ini and main.yml
1 parent 1c989df commit ca8b7d5

File tree

2 files changed

+11
-8
lines changed

2 files changed

+11
-8
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ jobs:
6060
python-version: '3.13'
6161

6262
- name: Install dependencies
63-
run: pip install -e .[documentation]
63+
run: pip install . --group docs
6464

6565
# Start mkdocs server and wait for it to be ready
6666
- run: mkdocs serve &

tox.ini

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,35 +10,38 @@ envlist =
1010
docs
1111

1212
[testenv]
13-
commands = python -W error::DeprecationWarning -W error::PendingDeprecationWarning runtests.py --coverage {posargs}
13+
commands =
14+
python -W error::DeprecationWarning -W error::PendingDeprecationWarning runtests.py --coverage {posargs}
1415
envdir = {toxworkdir}/venvs/{envname}
1516
setenv =
1617
PYTHONDONTWRITEBYTECODE=1
1718
PYTHONWARNINGS=once
19+
dependency-groups = test optional
1820
deps =
1921
django42: Django>=4.2,<5.0
2022
django50: Django>=5.0,<5.1
2123
django51: Django>=5.1,<5.2
2224
django52: Django>=5.2,<6.0
2325
django60: Django>=6.0,<6.1
2426
djangomain: https://github.com/django/django/archive/main.tar.gz
25-
.[testing,optional]
2627

2728
[testenv:base]
2829
; Ensure optional dependencies are not required
30+
dependency-groups = test
2931
deps =
30-
.[testing]
3132

3233
[testenv:dist]
33-
commands = python -W error::DeprecationWarning -W error::PendingDeprecationWarning runtests.py --no-pkgroot --staticfiles {posargs}
34+
commands =
35+
python -W error::DeprecationWarning -W error::PendingDeprecationWarning runtests.py --no-pkgroot --staticfiles {posargs}
36+
dependency-groups = test optional
3437
deps =
35-
.[testing,optional]
3638

3739
[testenv:docs]
3840
skip_install = true
39-
commands = mkdocs build
41+
commands =
42+
mkdocs build
43+
dependency-groups = test docs
4044
deps =
41-
.[testing,documentation]
4245

4346
[testenv:py312-djangomain]
4447
ignore_outcome = true

0 commit comments

Comments
 (0)