Skip to content

Commit

Permalink
Load docker test container in test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
pvandyken committed Dec 13, 2023
1 parent baa2778 commit 0e02a91
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/actions/build-test-container/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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: |
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 0e02a91

Please sign in to comment.