mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2025-08-11 12:51:55 +00:00
[workflow] fixed testmon cache in build CI (#3806)
* [workflow] fixed testmon cache in build CI * polish code
This commit is contained in:
parent
518b31c059
commit
84500b7799
4
.github/workflows/build_on_pr.yml
vendored
4
.github/workflows/build_on_pr.yml
vendored
@ -136,7 +136,7 @@ jobs:
|
|||||||
- name: Restore Testmon Cache
|
- name: Restore Testmon Cache
|
||||||
run: |
|
run: |
|
||||||
if [ -d /github/home/testmon_cache ]; then
|
if [ -d /github/home/testmon_cache ]; then
|
||||||
[ ! -z "$(ls -A /github/home/testmon_cache)" ] && cp -p -r /github/home/testmon_cache/.testmondata /__w/ColossalAI/ColossalAI/
|
[ ! -z "$(ls -A /github/home/testmon_cache)" ] && cp -p -r /github/home/testmon_cache/.testmondata* /__w/ColossalAI/ColossalAI/
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Execute Unit Testing
|
- name: Execute Unit Testing
|
||||||
@ -150,7 +150,7 @@ jobs:
|
|||||||
- name: Store Testmon Cache
|
- name: Store Testmon Cache
|
||||||
run: |
|
run: |
|
||||||
[ -d /github/home/testmon_cache ] || mkdir /github/home/testmon_cache
|
[ -d /github/home/testmon_cache ] || mkdir /github/home/testmon_cache
|
||||||
cp -p -r /__w/ColossalAI/ColossalAI/.testmondata /github/home/testmon_cache/
|
cp -p -r /__w/ColossalAI/ColossalAI/.testmondata* /github/home/testmon_cache/
|
||||||
|
|
||||||
- name: Collate artifact
|
- name: Collate artifact
|
||||||
env:
|
env:
|
||||||
|
4
.gitignore
vendored
4
.gitignore
vendored
@ -155,3 +155,7 @@ colossalai/version.py
|
|||||||
# ignore coverage test file
|
# ignore coverage test file
|
||||||
coverage.lcov
|
coverage.lcov
|
||||||
coverage.xml
|
coverage.xml
|
||||||
|
|
||||||
|
# ignore testmon and coverage files
|
||||||
|
.coverage
|
||||||
|
.testmondata*
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
diffusers
|
diffusers
|
||||||
fbgemm-gpu==0.2.0
|
fbgemm-gpu==0.2.0
|
||||||
pytest
|
pytest
|
||||||
|
coverage==7.2.3
|
||||||
git+https://github.com/hpcaitech/pytest-testmon
|
git+https://github.com/hpcaitech/pytest-testmon
|
||||||
torchvision
|
torchvision
|
||||||
transformers
|
transformers
|
||||||
|
Loading…
Reference in New Issue
Block a user