diff --git a/.github/workflows/build_run-tests.yml b/.github/workflows/build_run-tests.yml index a34cba65a9..173b72ff26 100644 --- a/.github/workflows/build_run-tests.yml +++ b/.github/workflows/build_run-tests.yml @@ -13,5 +13,6 @@ jobs: python-version: '3.11' - name: Run tests run: | + curl -sSL https://install.python-poetry.org | python3 - make build poetry run pytest ./tests \ No newline at end of file diff --git a/Makefile b/Makefile index d658a261c8..37f1d22ddf 100644 --- a/Makefile +++ b/Makefile @@ -54,10 +54,17 @@ build: echo "$(RED)Docker is not installed. Please install Docker to continue.$(RESET)"; \ exit 1; \ fi + @echo "$(GREEN)Installing Python dependencies...$(RESET)" + @if command -v poetry > /dev/null; then \ + echo "$(BLUE)Poetry is already installed.$(RESET)"; \ + else \ + echo "$(YELLOW)Poetry is not installed. You can install poetry by running the following command, then adding Poetry to your PATH:"; \ + echo "$(YELLOW) curl -sSL https://install.python-poetry.org | python3 -$(RESET)"; \ + echo "$(YELLOW)More detail here: https://python-poetry.org/docs/#installing-with-the-official-installer$(RESET)"; \ + exit 1; \ + fi @echo "$(GREEN)Pulling Docker image...$(RESET)" @docker pull $(DOCKER_IMAGE) - @echo "$(GREEN)Installing Python dependencies...$(RESET)" - @curl -sSL https://install.python-poetry.org | python3 - @poetry install --without evaluation @echo "$(GREEN)Activating Poetry shell...$(RESET)" @echo "$(GREEN)Setting up frontend environment...$(RESET)"