Skip to content

Commit

Permalink
run unit test on current change (#137)
Browse files Browse the repository at this point in the history
* run unit test on current change
  • Loading branch information
SeaOfOcean authored Oct 24, 2024
1 parent 9c7c30f commit 36d61b5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/unit_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ name: Unit Tests

on:
workflow_dispatch:
pull_request_target:
types: [opened, synchronize, reopened]
pull_request:
branches:
- main
- dev
Expand All @@ -28,7 +27,7 @@ jobs:
steps:

- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Run unit test
run: |
Expand All @@ -39,4 +38,4 @@ jobs:
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 }}
UT_IMAGE: registry.cn-wulanchabu.aliyuncs.com/pai-dlc/pytorch-training:2.4.0-gpu-py3.10-cu12.5-ngc24.06-ubuntu22.04
2 changes: 1 addition & 1 deletion tests/run_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ function run_test {


function run_all_tests {
run_test python test_rlhf_data_input.py -c "configs/exp.yaml"
run_test python test_data_dp.py -c "configs/rlhf.yaml"
run_test python test_rlhf_data_input.py -c "configs/exp.yaml"
run_test python test_data_dp_zero.py -c "configs/rlhf.yaml"
run_test python test_rlhf_colocate_forward_train.py -c "configs/rlhf2.yaml"
run_test python test_evaluator_multi.py -c "configs/test_eval2.yaml"
Expand Down

0 comments on commit 36d61b5

Please sign in to comment.