mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-19 21:08:07 +00:00
feat(tests): flip the default service for update_fixtures.py ci
to github
now that we don't really use gitlab anymore
This commit is contained in:
parent
475673e894
commit
eda8c72b3a
@ -39,7 +39,15 @@ def _get_current_git_branch() -> str:
|
|||||||
"-g",
|
"-g",
|
||||||
"--github",
|
"--github",
|
||||||
is_flag=True,
|
is_flag=True,
|
||||||
help="Fetch from GitHub Actions instead of GitLab CI",
|
help="Fetch from GitHub Actions (default)",
|
||||||
|
hidden=True,
|
||||||
|
expose_value=False,
|
||||||
|
)
|
||||||
|
@click.option(
|
||||||
|
"-l",
|
||||||
|
"--gitlab",
|
||||||
|
is_flag=True,
|
||||||
|
help="Fetch from Gitlab CI instead of GitHub Actions",
|
||||||
)
|
)
|
||||||
@click.option("-b", "--branch", help="Branch name")
|
@click.option("-b", "--branch", help="Branch name")
|
||||||
@click.option("-r", "--run-id", help="GitHub Actions run id", type=int)
|
@click.option("-r", "--run-id", help="GitHub Actions run id", type=int)
|
||||||
@ -57,7 +65,7 @@ def _get_current_git_branch() -> str:
|
|||||||
)
|
)
|
||||||
@click.option("-r", "--remove-missing", is_flag=True, help="Remove missing tests")
|
@click.option("-r", "--remove-missing", is_flag=True, help="Remove missing tests")
|
||||||
def ci(
|
def ci(
|
||||||
github: bool,
|
gitlab: bool,
|
||||||
branch: str | None,
|
branch: str | None,
|
||||||
run_id: int | None,
|
run_id: int | None,
|
||||||
only_jobs: Iterable[str] | None,
|
only_jobs: Iterable[str] | None,
|
||||||
@ -79,7 +87,7 @@ def ci(
|
|||||||
if exclude_jobs:
|
if exclude_jobs:
|
||||||
print(f"Exclude jobs: {exclude_jobs}")
|
print(f"Exclude jobs: {exclude_jobs}")
|
||||||
|
|
||||||
if github:
|
if not gitlab:
|
||||||
from github import get_branch_ui_fixtures_results
|
from github import get_branch_ui_fixtures_results
|
||||||
|
|
||||||
ui_results = get_branch_ui_fixtures_results(
|
ui_results = get_branch_ui_fixtures_results(
|
||||||
|
Loading…
Reference in New Issue
Block a user