Skip to content

Commit dad0119

Browse files
committed
fix ci
1 parent 2228ea8 commit dad0119

File tree

2 files changed

+8
-10
lines changed

2 files changed

+8
-10
lines changed

.dev_scripts/dockerci.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,20 @@
22
MODELSCOPE_CACHE_DIR_IN_CONTAINER=/modelscope_cache
33
CODE_DIR=$PWD
44
CODE_DIR_IN_CONTAINER=/twinkle
5+
mkdir -p ~/.cache
6+
MODELSCOPE_CACHE=~/.cache
7+
IMAGE_NAME=modelscope-registry.us-west-1.cr.aliyuncs.com/modelscope-repo/modelscope
8+
IMAGE_VERSION=ci_image
9+
MODELSCOPE_HOME_CACHE=~/.cache
10+
CI_TEST=True
11+
MODELSCOPE_SDK_DEBUG=True
12+
CI_COMMAND='bash .dev_scripts/ci_container_test.sh pytest tests'
513
MODELSCOPE_SDK_DEBUG=True
614
echo "$USER"
715
gpus='0,1 2,3'
816
cpu_sets='0-15 16-31'
917
cpu_sets_arr=($cpu_sets)
1018
is_get_file_lock=false
11-
CI_COMMAND=${CI_COMMAND:-bash .dev_scripts/ci_container_test.sh pytest tests}
1219
echo "ci command: $CI_COMMAND"
1320
PR_CHANGED_FILES="${PR_CHANGED_FILES:-}"
1421
echo "PR modified files: $PR_CHANGED_FILES"

.github/workflows/citest.yaml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -73,13 +73,4 @@ jobs:
7373
shell: bash
7474
run: |
7575
set -e
76-
mkdir -p ~/.cache
77-
export MODELSCOPE_CACHE=~/.cache
78-
export IMAGE_NAME=modelscope-registry.us-west-1.cr.aliyuncs.com/modelscope-repo/modelscope
79-
export IMAGE_VERSION=ci_image
80-
export MODELSCOPE_HOME_CACHE=~/.cache
81-
export CI_TEST=True
82-
export MODELSCOPE_SDK_DEBUG=True
83-
export CI_COMMAND='bash .dev_scripts/ci_container_test.sh pytest tests'
84-
CODE_DIR=$PWD
8576
bash .dev_scripts/dockerci.sh

0 commit comments

Comments
 (0)