Skip to content

Bump toolmantim/release-drafter from 5.23.0 to 5.24.0 #2342

Bump toolmantim/release-drafter from 5.23.0 to 5.24.0

Bump toolmantim/release-drafter from 5.23.0 to 5.24.0 #2342

Workflow file for this run

name: Tests
on:
push:
branches:
- main
pull_request: {}
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
TFLite:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, 'ci-skip')"
steps:
- uses: actions/checkout@v3
with:
submodules: true
fetch-depth: 0
- uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Configure Bazel
run: ./configure.py
shell: bash
- 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 --distinct_host_configuration=false --test_output=all
- name: Build TF Lite Static Library with CMake
run: |
mkdir build
cd build
cmake ..
make -j2
ARM:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, 'ci-skip')"
steps:
- uses: actions/checkout@v3
- name: Install qemu-user
run: |
sudo apt-get update
sudo apt-get install -y --no-install-recommends qemu-user
- uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Configure Bazel
run: ./configure.py
shell: bash
- name: Install pip dependencies
run: pip install numpy six --no-cache-dir
- name: "TF Lite Arm32: Cross-compile and run unit tests in qemu"
run: bazelisk test larq_compute_engine/tests:arm32_tests --config=rpi3 --test_output=all --test_filter="-*BigTest*" --copt=-O1
- name: "TF Lite Aarch64: Cross-compile and run unit tests in qemu"
run: bazelisk test larq_compute_engine/tests:aarch64_tests --config=aarch64 --test_output=all --test_filter="-*BigTest*"
- name: "Benchmark utility: check it builds successfully"
run: bazelisk build //larq_compute_engine/tflite/benchmark:lce_benchmark_model --config=aarch64 --compilation_mode=fastbuild
MLIR:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, 'ci-skip')"
steps:
- uses: actions/checkout@v3
- uses: google-github-actions/auth@v1
continue-on-error: true
with:
credentials_json: ${{ secrets.gcs_bazel_cache }}
- uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Configure Bazel
run: |
./configure.py
echo -e 'build --distinct_host_configuration=false' >> .bazelrc.user
if [[ -n $GOOGLE_APPLICATION_CREDENTIALS ]]; then
echo -e 'build --remote_http_cache=https://storage.googleapis.com/plumerai-bazel-cache/lce-ubuntu' >> .bazelrc.user
echo -e 'build --google_default_credentials' >> .bazelrc.user
fi
shell: bash
- name: Set bazel cache
run: echo -e 'build --remote_upload_local_results=false' >> .bazelrc.user
if: github.ref != 'refs/heads/main'
shell: bash
- name: Install pip dependencies
run: pip install tensorflow-cpu~=2.11.0 larq~=0.12 larq_zoo~=2.0 pytest tensorflow_datasets~=4.4 flatbuffers==2.0 tqdm --no-cache-dir
- name: Run Interpreter test
run: bazelisk test larq_compute_engine/tflite/tests:interpreter_test --test_output=all
- name: Run FileCheck tests
run: bazelisk test larq_compute_engine/mlir/tests:all --test_output=all
- name: Run End2End tests
run: bazelisk test larq_compute_engine/tests:end2end_test --test_output=all
- name: Run Strip dequantize op tests
run: bazelisk test larq_compute_engine/tests:strip_lcedequantize_test --test_output=all
ConverterPython:
runs-on: ubuntu-latest
strategy:
matrix:
tf-version: [1.14.0, 1.15.5, 2.0.4, 2.1.4, 2.2.3, 2.3.3, 2.4.4, 2.5.3, 2.6.4, 2.7.2, 2.8.1, 2.9.0, 2.10.0, 2.11.0]
if: "!contains(github.event.head_commit.message, 'ci-skip')"
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: 3.7
- name: Install TensorFlow
run: pip install tensorflow==${{matrix.tf-version}} --no-cache-dir
- name: Install dependencies
run: pip install larq~=0.12 larq_zoo~=2.0 tensorflow_datasets==1.3.2 packaging flatbuffers==2.0 --no-cache-dir
- name: Run Converter test
run: PYTHONPATH=./ python larq_compute_engine/mlir/python/converter_test.py
Android_AAR:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, 'ci-skip')"
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-python@v4
with:
python-version: 3.9
- uses: actions/cache@v3
id: cache
with:
path: /tmp/lce_android
key: ${{ runner.os }}-${{ hashFiles('**/third_party/install_android.sh') }}
- name: Install pip dependencies
run: pip install numpy six --no-cache-dir
- name: Set Java version
run: echo "JAVA_HOME=${JAVA_HOME_8_X64}" >> $GITHUB_ENV
- name: Download and install Android NDK/SDK
if: steps.cache.outputs.cache-hit != 'true'
run: ./third_party/install_android.sh
- name: Configure Bazel
run: LCE_SET_ANDROID_WORKSPACE=1 ANDROID_SDK_HOME="/tmp/lce_android" ANDROID_NDK_HOME="/tmp/lce_android/ndk/19.2.5345600" ./configure.py
shell: bash
- name: Build LCE AAR
run: BUILDER=bazelisk ./larq_compute_engine/tflite/java/build_lce_aar.sh