Skip to content

Commit

Permalink
Upgrade django-template tox
Browse files Browse the repository at this point in the history
  • Loading branch information
tomkins committed May 9, 2024
1 parent cfa5bc2 commit 1f7159c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,9 @@ jobs:
PGUSER: postgres
PGPASSWORD: password
TOX_TESTENV_PASSENV: "TOX_TESTENV_PASSENV PG*"
TOX_OVERRIDE: "testenv.pass_env=TOX_TESTENV_PASSENV,PG*"
run: |
pip install $(grep "^tox==" requirements/local.txt)
pip install $(grep -E "^(tox|tox-uv)==" requirements/local.txt)
tox -e ${{ matrix.testenv }}
services:
postgres:
Expand Down
3 changes: 2 additions & 1 deletion requirements/local.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
-r testing.txt

tox==3.28.0
tox==4.14.2
tox-uv==1.7.0
11 changes: 5 additions & 6 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
[tox]
envlist = django, django-multilingual, geodjango
skipsdist = true
no_package = true

[testenv]
basepython = python3.12
envdir = {toxworkdir}/py312
deps =
-rrequirements/testing.txt
changedir = {envtmpdir}
whitelist_externals =
allowlist_externals =
bash
passenv =
GDAL_LIBRARY_PATH
Expand All @@ -17,14 +16,14 @@ passenv =
[testenv:django]
commands =
cookiecutter --no-input {toxinidir}
bash -c "rm {envdir}/.gitignore && cd projectname && tox"
bash -c "cd projectname && tox"

[testenv:django-multilingual]
commands =
cookiecutter --no-input {toxinidir} multilingual=y
bash -c "rm {envdir}/.gitignore && cd projectname && tox"
bash -c "cd projectname && tox"

[testenv:geodjango]
commands =
cookiecutter --no-input {toxinidir} geodjango=y
bash -c "rm {envdir}/.gitignore && cd projectname && tox"
bash -c "cd projectname && tox"

0 comments on commit 1f7159c

Please sign in to comment.