diff --git a/.github/workflows/build-pull-request.yml b/.github/workflows/build-pull-request.yml index 4046e23..9e77a2f 100644 --- a/.github/workflows/build-pull-request.yml +++ b/.github/workflows/build-pull-request.yml @@ -40,4 +40,4 @@ jobs: - name: Run tests run: | - docker run --rm ${{ env.IMAGE_NAME }}:${{ env.TAG }} bash -l -c 'HOME=$ESI_DIR opticks-full-prepare && HOME=$ESI_DIR opticks-t' + docker run --rm ${{ env.IMAGE_NAME }}:${{ env.TAG }} tests/test_opticks.sh diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 027d49d..893b0cc 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -43,7 +43,7 @@ jobs: cache-to: type=inline - name: Run tests - run: docker run --rm ${{ env.IMAGE_NAME }}:latest bash -l -c 'HOME=$ESI_DIR opticks-full-prepare && HOME=$ESI_DIR opticks-t' + run: docker run --rm ${{ env.IMAGE_NAME }}:latest tests/test_opticks.sh - name: Declare latest and push run: docker push ${{ env.IMAGE_NAME }}:latest diff --git a/Dockerfile b/Dockerfile index bc59376..ccb13c4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -67,6 +67,7 @@ WORKDIR $ESI_DIR COPY epic epic COPY opticks opticks COPY .opticks .opticks +COPY tests tests COPY NVIDIA-OptiX-SDK-7.6.0-linux64-x86_64.sh . COPY <<-"EOF" /etc/profile.d/z20_opticks.sh diff --git a/tests/test_opticks.sh b/tests/test_opticks.sh new file mode 100755 index 0000000..3e7fc5d --- /dev/null +++ b/tests/test_opticks.sh @@ -0,0 +1,6 @@ +#!/usr/bin/env -S bash -l + +HOME=${HOME/\/root/$ESI_DIR} + +opticks-full-prepare +opticks-t