Skip to content

Commit 7b8607e

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

File tree

2 files changed

+18
-8
lines changed

2 files changed

+18
-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: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,35 +10,45 @@ 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 =
20+
test
21+
optional
1822
deps =
1923
django42: Django>=4.2,<5.0
2024
django50: Django>=5.0,<5.1
2125
django51: Django>=5.1,<5.2
2226
django52: Django>=5.2,<6.0
2327
django60: Django>=6.0,<6.1
2428
djangomain: https://github.com/django/django/archive/main.tar.gz
25-
.[testing,optional]
2629

2730
[testenv:base]
2831
; Ensure optional dependencies are not required
32+
dependency_groups =
33+
test
2934
deps =
30-
.[testing]
3135

3236
[testenv:dist]
33-
commands = python -W error::DeprecationWarning -W error::PendingDeprecationWarning runtests.py --no-pkgroot --staticfiles {posargs}
37+
commands =
38+
python -W error::DeprecationWarning -W error::PendingDeprecationWarning runtests.py --no-pkgroot --staticfiles {posargs}
39+
dependency_groups =
40+
test
41+
optional
3442
deps =
35-
.[testing,optional]
3643

3744
[testenv:docs]
3845
skip_install = true
39-
commands = mkdocs build
46+
commands =
47+
mkdocs build
48+
dependency_groups =
49+
test
50+
docs
4051
deps =
41-
.[testing,documentation]
4252

4353
[testenv:py312-djangomain]
4454
ignore_outcome = true

0 commit comments

Comments
 (0)