Commit be3f903c authored by Eric Duminil's avatar Eric Duminil
Browse files

Adding latest

parent 94d59da7
...@@ -22,8 +22,8 @@ shell: ## Start bash ...@@ -22,8 +22,8 @@ shell: ## Start bash
@echo "${green}Start shell${no_color}" @echo "${green}Start shell${no_color}"
docker run --rm -it simstadt/simstadt:cli bash docker run --rm -it simstadt/simstadt:cli bash
docker-build: ## Build the cli Docker image docker-build: ## Build the cli Docker image (also tagged :latest)
docker build --target cli -t simstadt/simstadt:cli . docker build --target cli -t simstadt/simstadt:cli -t simstadt/simstadt:latest .
docker-test: docker-build ## Run the full test suite (incl. integration tests) against the published PyPI package inside Docker docker-test: docker-build ## Run the full test suite (incl. integration tests) against the published PyPI package inside Docker
docker run --rm simstadt/simstadt:cli uv run --no-sync pytest -v docker run --rm simstadt/simstadt:cli uv run --no-sync pytest -v
...@@ -31,8 +31,9 @@ docker-test: docker-build ## Run the full test suite (incl. integration tests) a ...@@ -31,8 +31,9 @@ docker-test: docker-build ## Run the full test suite (incl. integration tests) a
_check_docker_push: _check_docker_push:
@echo -n "Are you sure you want to push the Docker images to Docker Hub? [y/N] " && read ans && [ $${ans:-N} = y ] @echo -n "Are you sure you want to push the Docker images to Docker Hub? [y/N] " && read ans && [ $${ans:-N} = y ]
docker-push: _check_docker_push docker-build ## Push the cli image to Docker Hub (requires prior `docker login`) docker-push: _check_docker_push docker-build ## Push the cli and latest images to Docker Hub (requires prior `docker login`)
docker push simstadt/simstadt:cli docker push simstadt/simstadt:cli
docker push simstadt/simstadt:latest
tests_installed_package: ## Tests the installed simstadt package tests_installed_package: ## Tests the installed simstadt package
pytest --pyargs simstadt -v pytest --pyargs simstadt -v
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment