π OpenHands: AI-Driven Development
feat(makefile): add capability to skip Docker image pull (#1463)
Arno.Edwards442ab7371c66
diff --git a/.github/workflows/run-unit-tests.yml b/.github/workflows/run-unit-tests.ymlindex 47697da73d..d1d65ced64 100644--- a/.github/workflows/run-unit-tests.yml+++ b/.github/workflows/run-unit-tests.yml@@ -10,6 +10,8 @@ jobs:test-on-macos:name: Test on macOSruns-on: macos-13+ env:+ INSTALL_DOCKER: '0' # Set to '0' to skip Docker installationstrategy:matrix:python-version: ["3.11"]@@ -30,6 +32,7 @@ jobs:run: poetry install- name: Install & Start Docker+ if: env.INSTALL_DOCKER == '1'run: |brew install colima dockercolima start@@ -40,6 +43,8 @@ jobs:- name: Build Environmentrun: make build+ env:+ SKIP_DOCKER_PULL: 1- name: Run Testsrun: poetry run pytest --cov=agenthub --cov=opendevin --cov-report=xml ./tests/unit@@ -51,6 +56,8 @@ jobs:test-on-linux:name: Test on Linuxruns-on: ubuntu-latest+ env:+ SKIP_DOCKER_PULL: 1 # Set to 0 to pull Docker imagesstrategy:matrix:python-version: ["3.11"]@@ -72,6 +79,8 @@ jobs:- name: Build Environmentrun: make build+ env:+ SKIP_DOCKER_PULL: 1- name: Run Testsrun: poetry run pytest --cov=agenthub --cov=opendevin --cov-report=xml ./tests/unitdiff --git a/Makefile b/Makefileindex 09e212030f..cc5d8db3b8 100644--- a/Makefile+++ b/Makefile@@ -22,7 +22,9 @@ RESET=$(shell tput -Txterm sgr0)build:@echo "$(GREEN)Building project...$(RESET)"@$(MAKE) -s check-dependencies+ifeq ($(SKIP_DOCKER_PULL),)@$(MAKE) -s pull-docker-image+endif@$(MAKE) -s install-python-dependencies@$(MAKE) -s install-frontend-dependencies@$(MAKE) -s install-precommit-hooks@@ -35,7 +37,9 @@ check-dependencies:@$(MAKE) -s check-python@$(MAKE) -s check-npm@$(MAKE) -s check-nodejs+ifeq ($(SKIP_DOCKER_PULL),)@$(MAKE) -s check-docker+endif@$(MAKE) -s check-poetry@echo "$(GREEN)Dependencies checked successfully.$(RESET)"