Skip to content

Commit

Permalink
Add minimal lockfile to satisfy bind
Browse files Browse the repository at this point in the history
  • Loading branch information
foarsitter committed Oct 26, 2024
1 parent 53d454c commit bd785eb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
6 changes: 5 additions & 1 deletion tests/test_docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

}
Expand All @@ -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
Expand All @@ -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

Expand Down
7 changes: 1 addition & 6 deletions {{cookiecutter.project_slug}}/uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit bd785eb

Please sign in to comment.