Skip to content

Commit

Permalink
Create LiteRT pre-submit CI to GitHub actions.
Browse files Browse the repository at this point in the history
LITERT_OSS_REV_ID: 715149733
  • Loading branch information
ecalubaquib authored and copybara-github committed Feb 4, 2025
1 parent 4cbb15d commit befd2c8
Showing 1 changed file with 51 additions and 0 deletions.
51 changes: 51 additions & 0 deletions .github/workflows/ci-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: "Presubmit"

on:
push:
branches:
- main
pull_request:
branches:
- main

permissions:
contents: read
actions: write

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true

jobs:
build:
# ie. presubmit (py 3.11 on ubuntu-latest)
name: "presubmit (py ${{ matrix.docker-python-version }} on ubuntu-latest"
strategy:
matrix:
docker-python-version: ['3.11']
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'

- name: Init submodule
run: |
git submodule update --init --recursive
- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools
python -m pip install build wheel numpy twine auditwheel
- name: Run bazel test
run: |
export DOCKER_PYTHON_VERSION="${{ matrix.docker-python-version }}"
export EXPERIMENTAL_TARGETS_ONLY="true"
echo "docker python version: ${DOCKER_PYTHON_VERSION}"
cat tflite/python/metrics/metrics_nonportable_test.py
# ./ci/run_bazel_test_with_docker.sh

0 comments on commit befd2c8

Please sign in to comment.