diff --git a/.github/actions/unit-test-action/action.yml b/.github/actions/unit-test-action/action.yml new file mode 100644 index 0000000..54867b9 --- /dev/null +++ b/.github/actions/unit-test-action/action.yml @@ -0,0 +1,4 @@ +name: 'Unit Test Action' +runs: + using: 'docker' + image: '../../../Dockerfile' \ No newline at end of file diff --git a/.github/actions/unit-test-action/Dockerfile b/Dockerfile similarity index 87% rename from .github/actions/unit-test-action/Dockerfile rename to Dockerfile index 2d90493..b6eccb8 100644 --- a/.github/actions/unit-test-action/Dockerfile +++ b/Dockerfile @@ -17,16 +17,8 @@ RUN pip install --no-cache-dir pytest openstudio copper-bem constrain WORKDIR /github/workspace # Copy the current directory contents into the container -COPY $GITHUB_WORKSPACE /github/workspace -RUN ls /github/workspace +COPY . /github/workspace -RUN mkdir /app -COPY . /app -RUN ls /app - -RUN mkdir /test -COPY ../../.. /test -RUN ls /test # Find directories containing measure.py and run tests RUN ls RUN mkdir test_results