File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 8686 push : true
8787 tags : ${{ steps.meta.outputs.tags }}
8888 labels : ${{ steps.meta.outputs.labels }}
89+ build-args : |
90+ SKIP_TESTS=true
Original file line number Diff line number Diff line change 11FROM noelmni/antspynet:master-58b19c9-mamba AS builder
22LABEL maintainer=<ravnoor@gmail.com>
33
4+ # set variable for conditional test execution
5+ ARG SKIP_TESTS=false
6+
47USER root
58
69COPY --chown=$MAMBA_USER:$MAMBA_USER environment.docker.yml environment.yml
@@ -15,9 +18,8 @@ COPY . .
1518ARG MAMBA_DOCKERFILE_ACTIVATE=1
1619RUN pip install --no-deps dist/*.whl
1720
18- # run tests
19- RUN echo ${TARGETPLATFORM}
20- RUN if [ "$CI" != "true" ] && [ "${TARGETPLATFORM}" != "linux/arm64" ]; then bash tests/run_tests.sh; fi
21+ # run tests if SKIP_TESTS is not true
22+ RUN if [ "${SKIP_TESTS}" != "true" ]; then bash tests/run_tests.sh; fi
2123
2224# production image
2325FROM mambaorg/micromamba:2-debian12-slim
You can’t perform that action at this time.
0 commit comments