Update installation commands for dependency groups in tox.ini and main.yml

This commit is contained in:
Pravin Kamble 2025-12-08 10:49:09 +05:30
parent 1c989dfbca
commit b05db8b8ba
2 changed files with 14 additions and 6 deletions

View File

@ -60,7 +60,7 @@ jobs:
python-version: '3.13'
- name: Install dependencies
run: pip install -e .[documentation]
run: pip install . --group docs
# Start mkdocs server and wait for it to be ready
- run: mkdocs serve &

18
tox.ini
View File

@ -15,6 +15,9 @@ envdir = {toxworkdir}/venvs/{envname}
setenv =
PYTHONDONTWRITEBYTECODE=1
PYTHONWARNINGS=once
dependency_groups =
test
optional
deps =
django42: Django>=4.2,<5.0
django50: Django>=5.0,<5.1
@ -22,23 +25,28 @@ deps =
django52: Django>=5.2,<6.0
django60: Django>=6.0,<6.1
djangomain: https://github.com/django/django/archive/main.tar.gz
.[testing,optional]
[testenv:base]
; Ensure optional dependencies are not required
dependency_groups =
test
deps =
.[testing]
[testenv:dist]
commands = python -W error::DeprecationWarning -W error::PendingDeprecationWarning runtests.py --no-pkgroot --staticfiles {posargs}
dependency_groups =
test
optional
deps =
.[testing,optional]
[testenv:docs]
skip_install = true
commands = mkdocs build
commands =
mkdocs build
dependency_groups =
test
docs
deps =
.[testing,documentation]
[testenv:py312-djangomain]
ignore_outcome = true