[workflow] fixed testmon cache in build CI (#3806)

* [workflow] fixed testmon cache in build CI

* polish code
This commit is contained in:
Frank Lee
2023-05-24 14:59:40 +08:00
committed by GitHub
parent 518b31c059
commit 84500b7799
3 changed files with 7 additions and 2 deletions

View File

@@ -136,7 +136,7 @@ jobs:
- name: Restore Testmon Cache
run: |
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
- name: Execute Unit Testing
@@ -150,7 +150,7 @@ jobs:
- name: Store Testmon Cache
run: |
[ -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
env: