未验证 提交 f583f929 编写于 作者: A Advait Jain 提交者: GitHub

Fix the style check docker container. (#156)

Following the pattern of #151 and fixes #11.
上级 a051e10e
......@@ -69,10 +69,9 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Check
# TODO(#11): Update the docker image to be hosted via github packages.
uses: docker://jpwithers/tflite-micro-tests
uses: docker://ghcr.io/tflm-bot/tflm-ci:latest
with:
args: /bin/sh -c "/opt/tflm/tensorflow/lite/micro/tools/ci_build/test_code_style.sh"
args: /bin/sh -c "tensorflow/lite/micro/tools/ci_build/test_code_style.sh"
project_generation:
runs-on: ubuntu-latest
......
# This docker container can be used to run all the TFLM CI checks.
#
# It is only used as part of the GitHub workflows to test for code-style. But
# the container is available and ready for use to run all the checks locally,
# in case that is useful for debugging.
#
# docker build -f ci/Dockerfile.micro -t ghcr.io/tflm-bot/tflm-ci:latest .
# or
# docker pull ghcr.io/tflm-bot/tflm-ci:latest
#
# Use a prebuilt Python image instead of base Ubuntu to speed up the build process,
# since it has all the build dependencies we need for Micro and downloads much faster
# than the install process.
......@@ -21,13 +31,6 @@ RUN pip install six
# Install Renode test dependencies
RUN pip install pyyaml requests psutil robotframework==3.1
# Install bazel and buildifier so that the bazel presubmit checks can be run
# from the micro docker container and are consistent with the rest of the CI.
COPY ci/*.sh /install/
RUN /install/install_bazel.sh
RUN /install/install_buildifier.sh
COPY . /opt/tflm/
WORKDIR /opt/tflm
CMD ["/opt/tflm/tensorflow/lite/micro/tools/ci_build/test_all.sh", "GITHUB_PRESUBMIT"]
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册