From ef32e8f50dcf22b7ec6d7490d0536499daa39848 Mon Sep 17 00:00:00 2001 From: Tom Bannink Date: Thu, 24 Jun 2021 19:49:34 +0200 Subject: [PATCH] Remove manylinux container from CI (#670) * Remove manylinux container from CI * Add `pip install numpy` * Update checkout action --- .github/workflows/unittests.yml | 23 +++++++++-------------- 1 file changed, 9 insertions(+), 14 deletions(-) diff --git a/.github/workflows/unittests.yml b/.github/workflows/unittests.yml index 304c4e9c..c766a5fb 100644 --- a/.github/workflows/unittests.yml +++ b/.github/workflows/unittests.yml @@ -10,26 +10,21 @@ jobs: TFLite: runs-on: ubuntu-latest if: "!contains(github.event.head_commit.message, 'ci-skip')" - container: - image: tensorflow/tensorflow:2.2.0-custom-op-ubuntu16 - steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v2 with: submodules: true - - name: Install Bazelisk - run: | - curl -L https://github.com/bazelbuild/bazelisk/releases/download/v1.7.4/bazelisk-linux-amd64 > bazelisk - chmod +x bazelisk + fetch-depth: 0 + - uses: actions/setup-python@v2 + with: + python-version: 3.9 - name: Configure Bazel run: ./configure.py shell: bash - env: - MANYLINUX2010: 1 - # CC unit tests needs to run after the configure is finished - # since the CC builds rely on compiler options generated by configure. - - name: Run TFLite Ops and Core CC Unit Tests - run: ./bazelisk test larq_compute_engine/tests:cc_tests --copt=-O2 --distinct_host_configuration=false --test_output=all + - name: Install pip dependencies + run: pip install numpy --no-cache-dir + - name: Run C++ Unit Tests + run: bazelisk test larq_compute_engine/tests:cc_tests --copt=-O2 --distinct_host_configuration=false --test_output=all - name: Build TF Lite Static Library with Make run: larq_compute_engine/tflite/build_make/build_lce.sh --native