Skip to content

Commit

Permalink
chat ci update
Browse files Browse the repository at this point in the history
  • Loading branch information
Camille7777 committed Apr 4, 2023
1 parent 96637ee commit 17ae7ae
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 14 deletions.
19 changes: 13 additions & 6 deletions .github/workflows/run_chatgpt_examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ on:
pull_request:
types: [synchronize, opened, reopened]
paths:
- 'applications/ChatGPT/chatgpt/**'
- 'applications/ChatGPT/requirements.txt'
- 'applications/ChatGPT/setup.py'
- 'applications/ChatGPT/examples/**'
- 'applications/Chat/coati/**'
- 'applications/Chat/requirements.txt'
- 'applications/Chat/setup.py'
- 'applications/Chat/examples/**'


jobs:
Expand All @@ -28,13 +28,20 @@ jobs:
- name: Install ColossalAI and ChatGPT
run: |
pip install -v .
cd applications/ChatGPT
cd applications/Chat
pip install -v .
pip install -r examples/requirements.txt
- name: Install Transformers
run: |
cd applications/Chat
git clone https://github.com/hpcaitech/transformers
cd transformers
pip install -v .
- name: Execute Examples
run: |
cd applications/ChatGPT
cd applications/Chat
rm -rf ~/.cache/colossalai
./examples/test_ci.sh
env:
Expand Down
23 changes: 15 additions & 8 deletions .github/workflows/run_chatgpt_unit_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ 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:
Expand All @@ -29,13 +29,20 @@ jobs:
- name: Install ColossalAI and ChatGPT
run: |
pip install -v .
cd applications/ChatGPT
cd applications/Chat
pip install -v .
pip install -r requirements-test.txt
- name: Install Transformers
run: |
cd applications/Chat
git clone https://github.com/hpcaitech/transformers
cd transformers
pip install -v .
- name: Execute Unit Testing
run: |
cd applications/ChatGPT
cd applications/Chat
rm -rf ~/.cache/colossalai
pytest tests/
env:
Expand Down

0 comments on commit 17ae7ae

Please sign in to comment.