diff --git a/tests/test_docker.sh b/tests/test_docker.sh index 03a9a7dcc2..796a772a3a 100755 --- a/tests/test_docker.sh +++ b/tests/test_docker.sh @@ -9,7 +9,7 @@ set -e finish() { # Your cleanup code here - docker compose -f docker-compose.local.yml down + docker compose -f docker-compose.local.yml down --remove-orphans docker volume rm my_awesome_project_my_awesome_project_local_postgres_data } @@ -19,6 +19,8 @@ trap finish EXIT mkdir -p .cache/docker cd .cache/docker +sudo rm -rf my_awesome_project + # create the project using the default settings in cookiecutter.json uv run cookiecutter ../../ --no-input --overwrite-if-exists use_docker=y "$@" cd my_awesome_project @@ -29,6 +31,8 @@ docker compose -f docker-compose.local.yml build # run the project's type checks docker compose -f docker-compose.local.yml run django mypy my_awesome_project +docker compose -f docker-compose.local.yml run --volume $PWD:/app django uv lock + # run the project's tests docker compose -f docker-compose.local.yml run django pytest diff --git a/{{cookiecutter.project_slug}}/uv.lock b/{{cookiecutter.project_slug}}/uv.lock index dea0e7ce78..975be54ebb 100644 --- a/{{cookiecutter.project_slug}}/uv.lock +++ b/{{cookiecutter.project_slug}}/uv.lock @@ -1,7 +1,2 @@ version = 1 -requires-python = ">=3.12" - -[[package]] -name = "" -version = "0.1.0" -source = { virtual = "." } +requires-python = "==3.12.*"