Skip to content

support parameter sync with unbalanced pipe stages #224

support parameter sync with unbalanced pipe stages

support parameter sync with unbalanced pipe stages #224

Workflow file for this run

name: Unit Tests
on:
workflow_dispatch:
pull_request_target:
types: [opened, synchronize, reopened]
branches:
- main
- dev
paths-ignore:
- 'docs/**'
push:
branches:
- main
paths-ignore:
- 'docs/**'
tags:
- v[0-9]+.[0-9]+.[0-9]+
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
run-shell-script:
runs-on: self-hosted
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Run unit test
run: |
containers=$(docker ps -aqf "name=^chatlearn_ut_")
if [[ -n "$containers" ]]; then
docker rm $containers -f
fi
docker pull $UT_IMAGE
docker run -v $PWD:$PWD -w $PWD --name chatlearn_ut_$(date '+%d_%m_%Y_%H_%M_%S') --net host --ipc host --shm-size 80G -t --rm --gpus all $UT_IMAGE bash -c 'make test'
env:
UT_IMAGE: ${{ secrets.UT_IMAGE }}