Skip to content

Commit

Permalink
dev(hansbug): migrate the test mirros
Browse files Browse the repository at this point in the history
  • Loading branch information
HansBug committed Sep 19, 2022
1 parent 8160f6f commit 6e27b0e
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion templates/linear-regression
2 changes: 1 addition & 1 deletion templates/test/template/.d_origin.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def _get_testfile_url(resource, branch='main') -> str:
if not os.environ.get('NO_GITHUB'):
return f'https://{GITHUB_HOST}/igm4ai/igm-testfile/raw/{branch}/{resource}'
else:
return f'https://gitee.com/hansbug/igm-testfile/raw/{branch}/{resource}'
return f'https://gitee.com/igm4ai/igm-testfile/raw/{branch}/{resource}'


download(_get_testfile_url('gztar_template-simple.tar.gz'), auto_unpack=False)
2 changes: 1 addition & 1 deletion templates/test/template/.d_subdir.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def _get_testfile_url(resource, branch='main') -> str:
if not os.environ.get('NO_GITHUB'):
return f'https://{GITHUB_HOST}/igm4ai/igm-testfile/raw/{branch}/{resource}'
else:
return f'https://gitee.com/hansbug/igm-testfile/raw/{branch}/{resource}'
return f'https://gitee.com/igm4ai/igm-testfile/raw/{branch}/{resource}'


download(_get_testfile_url('gztar_template-simple.tar.gz'), subdir='template')
2 changes: 1 addition & 1 deletion templates/test/template/.d_unpacked.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def _get_testfile_url(resource, branch='main') -> str:
if not os.environ.get('NO_GITHUB'):
return f'https://{GITHUB_HOST}/igm4ai/igm-testfile/raw/{branch}/{resource}'
else:
return f'https://gitee.com/hansbug/igm-testfile/raw/{branch}/{resource}'
return f'https://gitee.com/igm4ai/igm-testfile/raw/{branch}/{resource}'


download(_get_testfile_url('gztar_template-simple.tar.gz'))
2 changes: 1 addition & 1 deletion templates/test/template/nested/1/2/5/.d_unpacked.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def _get_testfile_url(resource, branch='main') -> str:
if not os.environ.get('NO_GITHUB'):
return f'https://{GITHUB_HOST}/igm4ai/igm-testfile/raw/{branch}/{resource}'
else:
return f'https://gitee.com/hansbug/igm-testfile/raw/{branch}/{resource}'
return f'https://gitee.com/igm4ai/igm-testfile/raw/{branch}/{resource}'


download(_get_testfile_url('gztar_template-simple.tar.gz'))
2 changes: 1 addition & 1 deletion test/testings/templates.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
if _has_github():
TEMPLATE_SIMPLE_REPO_GIT = f'git+https://{GITHUB_HOST}/igm4ai/template-simple.git'
else:
TEMPLATE_SIMPLE_REPO_GIT = f'git+https://gitee.com/hansbug/template-simple.git'
TEMPLATE_SIMPLE_REPO_GIT = f'git+https://gitee.com/igm4ai/template-simple.git'

# template-linear
TEMPLATE_LINEAR = 'templates/linear-regression'
Expand Down
2 changes: 1 addition & 1 deletion test/testings/testfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ def get_testfile_url(resource: str, branch: str = 'main'):
if _has_github():
return f'https://{GITHUB_HOST}/igm4ai/igm-testfile/raw/{branch}/{resource}'
else:
return f'https://gitee.com/hansbug/igm-testfile/raw/{branch}/{resource}'
return f'https://gitee.com/igm4ai/igm-testfile/raw/{branch}/{resource}'


_LOCAL_DIR, _ = os.path.split(os.path.abspath(__file__))
Expand Down

0 comments on commit 6e27b0e

Please sign in to comment.