From 179558a87ab37096450223d8ee4c2b1a06a334a4 Mon Sep 17 00:00:00 2001 From: Hongxin Liu Date: Mon, 24 Apr 2023 10:55:14 +0800 Subject: [PATCH] [devops] fix chat ci (#3628) --- .github/workflows/run_chatgpt_examples.yml | 4 ++++ .github/workflows/run_chatgpt_unit_tests.yml | 16 ++++++++++------ 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/.github/workflows/run_chatgpt_examples.yml b/.github/workflows/run_chatgpt_examples.yml index 1d8240ad4..9d9d3a007 100644 --- a/.github/workflows/run_chatgpt_examples.yml +++ b/.github/workflows/run_chatgpt_examples.yml @@ -13,6 +13,10 @@ on: jobs: tests: name: Run ChatGPT examples + if: | + github.event.pull_request.draft == false && + github.base_ref == 'main' && + github.event.pull_request.base.repo.full_name == 'hpcaitech/ColossalAI' runs-on: [self-hosted, gpu] container: image: hpcaitech/pytorch-cuda:1.12.0-11.3.0 diff --git a/.github/workflows/run_chatgpt_unit_tests.yml b/.github/workflows/run_chatgpt_unit_tests.yml index 4e539bfe0..407f630e2 100644 --- a/.github/workflows/run_chatgpt_unit_tests.yml +++ b/.github/workflows/run_chatgpt_unit_tests.yml @@ -4,16 +4,20 @@ on: pull_request: types: [synchronize, opened, reopened] paths: - - 'applications/ChatGPT/chatgpt/**' - - 'applications/ChatGPT/requirements.txt' - - 'applications/ChatGPT/setup.py' - - 'applications/ChatGPT/requirements-test.txt' - - 'applications/ChatGPT/tests/**' - - 'applications/ChatGPT/pytest.ini' + - 'applications/Chat/coati/**' + - 'applications/Chat/requirements.txt' + - 'applications/Chat/setup.py' + - 'applications/Chat/requirements-test.txt' + - 'applications/Chat/tests/**' + - 'applications/Chat/pytest.ini' jobs: tests: name: Run ChatGPT unit tests + if: | + github.event.pull_request.draft == false && + github.base_ref == 'main' && + github.event.pull_request.base.repo.full_name == 'hpcaitech/ColossalAI' runs-on: [self-hosted, gpu] container: image: hpcaitech/pytorch-cuda:1.12.0-11.3.0