Merge remote-tracking branch 'refs/remotes/origin/dev' into dev
This commit is contained in:
		
						commit
						2d9e9c023f
					
				|  | @ -45,6 +45,10 @@ def convert( | ||||||
|     ) |     ) | ||||||
| 
 | 
 | ||||||
|     # Construct healthcheck stage |     # Construct healthcheck stage | ||||||
|  |     if ( | ||||||
|  |         not repo_conf.force_skip_heatlh_check_on_test | ||||||
|  |         or os.environ.get("PYTEST_CURRENT_TEST") is None | ||||||
|  |     ): | ||||||
|         healthcheck_stage = get_healthcheck_config(repo_conf, repo_root) |         healthcheck_stage = get_healthcheck_config(repo_conf, repo_root) | ||||||
|         result_conf.stage.stages.append(healthcheck_stage) |         result_conf.stage.stages.append(healthcheck_stage) | ||||||
|     stages: List[str] = [] |     stages: List[str] = [] | ||||||
|  |  | ||||||
|  | @ -4,19 +4,20 @@ from pydantic import BaseModel, Field | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| class Files(BaseModel): | class Files(BaseModel): | ||||||
|     required: List[str] |     required: List[str] = [] | ||||||
|     immutable: List[str] |     immutable: List[str] = [] | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| class Group(BaseModel): | class Groups(BaseModel): | ||||||
|     name: List[str] |     name: List[str] = [] | ||||||
|     max_count: List[int] |     max_count: List[int] = [] | ||||||
|     time_period_hour: List[int] |     time_period_hour: List[int] = [] | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| class Config(BaseModel): | class Config(BaseModel): | ||||||
|     max_size: float = Field(..., ge=0) |     max_size: float = Field(10, ge=0) | ||||||
|     files: Files |     files: Files = Files() | ||||||
|     sandbox_token: str |     sandbox_token: str = Field("") | ||||||
|     max_total_score: int = Field(100) |     max_total_score: int = Field(100) | ||||||
|     groups: Group |     force_skip_heatlh_check_on_test: bool = False | ||||||
|  |     groups: Groups = Groups() | ||||||
|  |  | ||||||
|  | @ -1,15 +1 @@ | ||||||
| sandbox_token = "test" | force_skip_heatlh_check_on_test = true | ||||||
| 
 |  | ||||||
| # reconfigure later |  | ||||||
| max_total_score = 100 |  | ||||||
| max_size = 50.5 |  | ||||||
| 
 |  | ||||||
| # for tests |  | ||||||
| [groups] |  | ||||||
| name = ["joj", "run"] |  | ||||||
| max_count = [1000, 1000] |  | ||||||
| time_period_hour = [24, 24] |  | ||||||
| 
 |  | ||||||
| [files] |  | ||||||
| required = ["README.md", "Changelog.md"] |  | ||||||
| immutable = [".gitignore", ".gitattributes",".gitea/workflows/push.yaml", ".gitea/workflows/release.yaml"] |  | ||||||
|  |  | ||||||
|  | @ -1,15 +1 @@ | ||||||
| sandbox_token = "test" | force_skip_heatlh_check_on_test = true | ||||||
| 
 |  | ||||||
| # reconfigure later |  | ||||||
| max_total_score = 100 |  | ||||||
| max_size = 50.5 |  | ||||||
| 
 |  | ||||||
| # for tests |  | ||||||
| [groups] |  | ||||||
| name = ["joj", "run"] |  | ||||||
| max_count = [1000, 1000] |  | ||||||
| time_period_hour = [24, 24] |  | ||||||
| 
 |  | ||||||
| [files] |  | ||||||
| required = ["README.md", "Changelog.md"] |  | ||||||
| immutable = [".gitignore", ".gitattributes",".gitea/workflows/push.yaml", ".gitea/workflows/release.yaml"] |  | ||||||
|  |  | ||||||
|  | @ -1,15 +1 @@ | ||||||
| sandbox_token = "test" | force_skip_heatlh_check_on_test = true | ||||||
| 
 |  | ||||||
| # reconfigure later |  | ||||||
| max_total_score = 100 |  | ||||||
| max_size = 50.5 |  | ||||||
| 
 |  | ||||||
| # for tests |  | ||||||
| [groups] |  | ||||||
| name = ["joj", "run"] |  | ||||||
| max_count = [1000, 1000] |  | ||||||
| time_period_hour = [24, 24] |  | ||||||
| 
 |  | ||||||
| [files] |  | ||||||
| required = ["README.md", "Changelog.md"] |  | ||||||
| immutable = [".gitignore", ".gitattributes",".gitea/workflows/push.yaml", ".gitea/workflows/release.yaml"] |  | ||||||
|  |  | ||||||
|  | @ -1,15 +1 @@ | ||||||
| sandbox_token = "test" | force_skip_heatlh_check_on_test = true | ||||||
| 
 |  | ||||||
| # reconfigure later |  | ||||||
| max_total_score = 100 |  | ||||||
| max_size = 50.5 |  | ||||||
| 
 |  | ||||||
| # for tests |  | ||||||
| [groups] |  | ||||||
| name = ["joj", "run"] |  | ||||||
| max_count = [1000, 1000] |  | ||||||
| time_period_hour = [24, 24] |  | ||||||
| 
 |  | ||||||
| [files] |  | ||||||
| required = ["README.md", "Changelog.md"] |  | ||||||
| immutable = [".gitignore", ".gitattributes",".gitea/workflows/push.yaml", ".gitea/workflows/release.yaml"] |  | ||||||
|  |  | ||||||
|  | @ -1,15 +1 @@ | ||||||
| sandbox_token = "test" | force_skip_heatlh_check_on_test = true | ||||||
| 
 |  | ||||||
| # reconfigure later |  | ||||||
| max_total_score = 100 |  | ||||||
| max_size = 50.5 |  | ||||||
| 
 |  | ||||||
| # for tests |  | ||||||
| [groups] |  | ||||||
| name = ["joj", "run"] |  | ||||||
| max_count = [1000, 1000] |  | ||||||
| time_period_hour = [24, 24] |  | ||||||
| 
 |  | ||||||
| [files] |  | ||||||
| required = ["README.md", "Changelog.md"] |  | ||||||
| immutable = [".gitignore", ".gitattributes",".gitea/workflows/push.yaml", ".gitea/workflows/release.yaml"] |  | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user