From 0e02a91ad438f23b1f5bd9060195a51d2dbc2542 Mon Sep 17 00:00:00 2001 From: Peter Van Dyken Date: Wed, 13 Dec 2023 15:17:26 -0500 Subject: [PATCH] Load docker test container in test workflow --- .github/actions/build-test-container/action.yaml | 7 ++++++- .github/workflows/test.yml | 1 + 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/actions/build-test-container/action.yaml b/.github/actions/build-test-container/action.yaml index df8319ec..06ab3b86 100644 --- a/.github/actions/build-test-container/action.yaml +++ b/.github/actions/build-test-container/action.yaml @@ -4,6 +4,11 @@ inputs: python-version: description: Python version to setup required: true + load: + required: false + description: | + if true, load the docker container into docker for downstream consumption + default: '' runs: using: composite @@ -28,7 +33,7 @@ runs: cache-from: type=gha cache-to: type=gha,mode=max push: false - load: false + load: ${{ inputs.load == 'true' }} tags: snakebids/test-template:${{ inputs.python-version }} platforms: linux/amd64 build-args: | diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b2ed01af..43f71f36 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -70,6 +70,7 @@ jobs: uses: ./.github/actions/build-test-container with: python-version: ${{ steps.setup.outputs.python-version }} + load: true - name: Test with pytest env: