Skip to content

Daily Accuracy Benchmark #2

Daily Accuracy Benchmark

Daily Accuracy Benchmark #2

name: Daily Accuracy Benchmark
on:
workflow_dispatch:
schedule:
# Runs daily at 3:00 AM, Beijing time.
- cron: '0 19 * * *' # This is UTC time
jobs:
accuracy_benchmark:
runs-on: self-hosted
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Perform the accuracy benchmark
run: |
docker pull $UT_IMAGE
docker run -v $PWD:$PWD -w $PWD --net host --ipc host --shm-size 80G -t --rm --gpus all $UT_IMAGE bash -c '
pip install -r requirements/requirements-test.txt && \
git config --global --add safe.directory $PWD && \
pip install -e . && \
cd benchmarks/accuracy && bash ./run.sh'
env:
OSS_AK_ID: ${{ secrets.OSS_AK_ID }}
OSS_AK_SECRET: ${{ secrets.OSS_AK_SECRET }}
OSS_ENDPOINT: ${{ secrets.OSS_ENDPOINT }}
M6_TENANT: ${{ secrets.M6_TENANT }}
MIT_SPIDER_TOKEN: ${{ secrets.MIT_SPIDER_TOKEN }}
MIT_SPIDER_URL: ${{ secrets.MIT_SPIDER_URL }}