Skip to content

Commit

Permalink
Update build_and_test GHA with container creation and testing
Browse files Browse the repository at this point in the history
  • Loading branch information
tomaroberts committed Feb 20, 2024
1 parent b0b47ae commit 15942d9
Showing 1 changed file with 29 additions and 2 deletions.
31 changes: 29 additions & 2 deletions .github/workflows/build_and_test_cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ on:
pull_request:

jobs:
build-and-test:
name: Build
venv-build-and-test:
name: venv build

runs-on: ${{ matrix.os }}

Expand Down Expand Up @@ -65,3 +65,30 @@ jobs:
ls ./output
# assert DICOM files exist
[ -f "./output/IM_0001.dcm" ] && echo "Output DICOM file exists" || exit 1
container-build-and-test:
name: container build

runs-on: ${{ matrix.os }}

strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest ]
python-version: [ '3.9' ]

steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Build container
run: |
docker build -t nii2dcm --progress=plain --no-cache .
docker ps
- name: Test nii2dcm container
run: |
docker run nii2dcm -h
echo "nii2dcm version:"
docker run nii2dcm -v

0 comments on commit 15942d9

Please sign in to comment.