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' python-version: '3.13'
- name: Install dependencies - name: Install dependencies
run: pip install -e .[documentation] run: pip install . --group docs
# Start mkdocs server and wait for it to be ready # Start mkdocs server and wait for it to be ready
- run: mkdocs serve & - run: mkdocs serve &

18
tox.ini
View File

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