Skip to content

Add Quant Related Test & Tools. #39

Add Quant Related Test & Tools.

Add Quant Related Test & Tools. #39

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
- 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