Skip to content

Commit eab4bf4

Browse files
committed
Update installation commands for dependency groups in tox.ini and main.yml
1 parent 572793f commit eab4bf4

File tree

2 files changed

+12
-8
lines changed

2 files changed

+12
-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: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ envlist =
1010
docs
1111

1212
[testenv]
13-
commands = python -W error::DeprecationWarning -W error::PendingDeprecationWarning runtests.py --coverage {posargs}
13+
commands =
14+
pip install --group test --group optional
15+
python -W error::DeprecationWarning -W error::PendingDeprecationWarning runtests.py --coverage {posargs}
1416
envdir = {toxworkdir}/venvs/{envname}
1517
setenv =
1618
PYTHONDONTWRITEBYTECODE=1
@@ -22,23 +24,25 @@ deps =
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+
commands =
31+
pip install --group test
2932
deps =
30-
.[testing]
3133

3234
[testenv:dist]
33-
commands = python -W error::DeprecationWarning -W error::PendingDeprecationWarning runtests.py --no-pkgroot --staticfiles {posargs}
35+
commands =
36+
pip install --group test --group optional
37+
python -W error::DeprecationWarning -W error::PendingDeprecationWarning runtests.py --no-pkgroot --staticfiles {posargs}
3438
deps =
35-
.[testing,optional]
3639

3740
[testenv:docs]
3841
skip_install = true
39-
commands = mkdocs build
42+
commands =
43+
pip install --group test --group docs
44+
mkdocs build
4045
deps =
41-
.[testing,documentation]
4246

4347
[testenv:py312-djangomain]
4448
ignore_outcome = true

0 commit comments

Comments
 (0)