Skip to content

Develop lx

Develop lx #64

Workflow file for this run

on:
pull_request:
workflow_dispatch:
# push:
# branches:
# - develop-lx
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
name: "Tests"
permissions:
pull-requests: write
contents: read
jobs:
gtest:
name: Unit Tests
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/[email protected]
with:
submodules: true
- name: Security Check
# Check if is a forked repo, if so, do not run action job.
if: github.repository != 'UbiquitousLearning/mllm'
run: |
echo "This is a forked repo, stop running"
exit 1
- uses: actions/setup-python@v4
with:
python-version: '3.9'
cache: 'pip' # caching pip dependencies
- run: cd test && pip install -r requirements.txt && pip install cmake
- name: Build
run: |
cmake -DTEST=on -Bbuild && cmake --build build --target all
- name: Make Data
run:
cd test && bash test.sh
- name: Test
uses: gacts/run-and-post-run@v1
env:
FEISHU_TOKEN: ${{ secrets.FEISHU_TOKEN }}
FEISHU_AT: ${{ secrets.FEISHU_AT }}
PR_NUMBER: ${{ github.event.number }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
working-directory: bin
run: ls && ./MLLM_TEST --gtest_output=json
post: |
COMMIT_MESSAGE="$(git show -s --format=%s)" python3 ../tools/ci/report.py
mobile_test:
name: Unit Tests on Mobile
runs-on: self-hosted
steps:
- name: Checkout
uses: actions/[email protected]
with:
submodules: true
- name: Security Check
# Check if is a forked repo, if so, do not run action job.
if: github.repository != 'UbiquitousLearning/mllm'
run: |
echo "This is a forked repo, stop running"
exit 1
- uses: actions/setup-python@v4
with:
python-version: '3.9'
cache: 'pip' # caching pip dependencies
- run: cd test && pip install -r requirements.txt && pip install cmake
- name: Prepare & Build
run: |
bash tools/ci/build_arm64.sh
- name: Test
uses: gacts/run-and-post-run@v1
env:
FEISHU_TOKEN: ${{ secrets.FEISHU_TOKEN }}
FEISHU_AT: ${{ secrets.FEISHU_AT }}
PR_NUMBER: ${{ github.event.number }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
IS_MOBILE: 1
with:
run: adb devices && python3 ./tools/ci/mobile_test.py
post: |
COMMIT_MESSAGE="$(git show -s --format=%s)" python3 ./tools/ci/report.py