feat(makefile): add capability to skip Docker image pull (#1463)

* feat(makefile): add capability to skip Docker image pull

* ci(github-actions): add conditional Docker installation based on ENV variable
This commit is contained in:
Arno.Edwards
2024-05-01 21:01:11 +08:00
committed by GitHub
parent 1c7cdbefdd
commit 442ab7371c
2 changed files with 13 additions and 0 deletions

View File

@@ -10,6 +10,8 @@ jobs:
test-on-macos:
name: Test on macOS
runs-on: macos-13
env:
INSTALL_DOCKER: '0' # Set to '0' to skip Docker installation
strategy:
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 docker
colima start
@@ -40,6 +43,8 @@ jobs:
- name: Build Environment
run: make build
env:
SKIP_DOCKER_PULL: 1
- name: Run Tests
run: poetry run pytest --cov=agenthub --cov=opendevin --cov-report=xml ./tests/unit
@@ -51,6 +56,8 @@ jobs:
test-on-linux:
name: Test on Linux
runs-on: ubuntu-latest
env:
SKIP_DOCKER_PULL: 1 # Set to 0 to pull Docker images
strategy:
matrix:
python-version: ["3.11"]
@@ -72,6 +79,8 @@ jobs:
- name: Build Environment
run: make build
env:
SKIP_DOCKER_PULL: 1
- name: Run Tests
run: poetry run pytest --cov=agenthub --cov=opendevin --cov-report=xml ./tests/unit