Skip to content

Commit 107710c

Browse files
Added tests for minimal cpu tests. (#1284)
1 parent 3b0d978 commit 107710c

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

.github/workflows/ci_test.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,12 @@ jobs:
8383
steps:
8484
- uses: actions/checkout@v2
8585
- run: bash tools/run_build.sh test_editable_mode
86+
test_cpu_in_small_docker_image:
87+
name: Run the cpu tests in a small python docker image
88+
runs-on: ubuntu-latest
89+
steps:
90+
- uses: actions/checkout@v2
91+
- run: bash tools/run_cpu_tests.sh
8692
valid-codeowners:
8793
name: Check that the CODEOWNERS is valid
8894
runs-on: ubuntu-latest

tools/docker/cpu_tests.Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ COPY tools/install_deps/tensorflow-cpu.txt ./
44
RUN pip install -r tensorflow-cpu.txt
55

66
RUN apt-get update && apt-get install -y sudo rsync
7-
COPY tools/install_deps/bazel.sh ./
8-
RUN bash bazel.sh
7+
COPY tools/install_deps/bazel_linux.sh ./
8+
RUN bash bazel_linux.sh
99

1010
COPY requirements.txt ./
1111
RUN pip install -r requirements.txt

0 commit comments

Comments
 (0)