mirror of
https://github.com/modelscope/modelscope.git
synced 2026-09-01 19:49:03 +02:00
[to #42461396] add git-lfs support and mv test data to git-lfs
This commit is contained in:
@@ -91,6 +91,55 @@ make tests
|
||||
|
||||
4. Daily regression tests will run all cases at 0 am each day using master branch.
|
||||
|
||||
### 2.3 Test data storage
|
||||
|
||||
As we need a lot of data for testing, including images, videos, models. We use git lfs
|
||||
to store those large files.
|
||||
|
||||
1. install git-lfs
|
||||
for mac
|
||||
```bash
|
||||
brew install git-lfs
|
||||
git lfs install
|
||||
```
|
||||
|
||||
for centos, please download rpm from git-lfs github release [website](https://github.com/git-lfs/git-lfs/releases/tag/v3.2.0)
|
||||
```bash
|
||||
wget http://101374-public.oss-cn-hangzhou-zmf.aliyuncs.com/git-lfs-3.2.0-1.el7.x86_64.rpm
|
||||
sudo rpm -ivh git-lfs-3.2.0-1.el7.x86_64.rpm
|
||||
git lfs install
|
||||
```
|
||||
|
||||
for ubuntu
|
||||
```bash
|
||||
curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | sudo bash
|
||||
sudo apt-get install git-lfs
|
||||
git lfs install
|
||||
```
|
||||
|
||||
2. track your data type using git lfs, for example, to track png files
|
||||
```bash
|
||||
git lfs track "*.png"
|
||||
```
|
||||
|
||||
3. add your test files to `data/test/` folder, you can make directories if you need.
|
||||
```bash
|
||||
git add data/test/test.png
|
||||
```
|
||||
|
||||
4. commit your test data to remote branch
|
||||
```bash
|
||||
git commit -m "xxx"
|
||||
```
|
||||
|
||||
To pull data from remote repo, just as the same way you pull git files.
|
||||
```bash
|
||||
git pull origin branch_name
|
||||
```
|
||||
|
||||
|
||||
|
||||
|
||||
## Code Review
|
||||
|
||||
1. Run following command to create an aone CR, replace `TARGET_BRANCH` and `CR_NAME` with the one you want.
|
||||
|
||||
Reference in New Issue
Block a user