Skip to content

Commit b05db8b

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

File tree

2 files changed

+14
-6
lines changed

2 files changed

+14
-6
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: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,30 +15,38 @@ envdir = {toxworkdir}/venvs/{envname}
1515
setenv =
1616
PYTHONDONTWRITEBYTECODE=1
1717
PYTHONWARNINGS=once
18+
dependency_groups =
19+
test
20+
optional
1821
deps =
1922
django42: Django>=4.2,<5.0
2023
django50: Django>=5.0,<5.1
2124
django51: Django>=5.1,<5.2
2225
django52: Django>=5.2,<6.0
2326
django60: Django>=6.0,<6.1
2427
djangomain: https://github.com/django/django/archive/main.tar.gz
25-
.[testing,optional]
2628

2729
[testenv:base]
2830
; Ensure optional dependencies are not required
31+
dependency_groups =
32+
test
2933
deps =
30-
.[testing]
3134

3235
[testenv:dist]
3336
commands = python -W error::DeprecationWarning -W error::PendingDeprecationWarning runtests.py --no-pkgroot --staticfiles {posargs}
37+
dependency_groups =
38+
test
39+
optional
3440
deps =
35-
.[testing,optional]
3641

3742
[testenv:docs]
3843
skip_install = true
39-
commands = mkdocs build
44+
commands =
45+
mkdocs build
46+
dependency_groups =
47+
test
48+
docs
4049
deps =
41-
.[testing,documentation]
4250

4351
[testenv:py312-djangomain]
4452
ignore_outcome = true

0 commit comments

Comments
 (0)