From eda8c72b3a3a809ee95e2c3ac853d367038cf3ea Mon Sep 17 00:00:00 2001 From: matejcik Date: Tue, 10 Sep 2024 15:37:22 +0200 Subject: [PATCH] feat(tests): flip the default service for `update_fixtures.py ci` to github now that we don't really use gitlab anymore --- tests/update_fixtures.py | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/tests/update_fixtures.py b/tests/update_fixtures.py index 61bff3eb56..1371af5004 100755 --- a/tests/update_fixtures.py +++ b/tests/update_fixtures.py @@ -39,7 +39,15 @@ def _get_current_git_branch() -> str: "-g", "--github", 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("-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") def ci( - github: bool, + gitlab: bool, branch: str | None, run_id: int | None, only_jobs: Iterable[str] | None, @@ -79,7 +87,7 @@ def ci( if exclude_jobs: print(f"Exclude jobs: {exclude_jobs}") - if github: + if not gitlab: from github import get_branch_ui_fixtures_results ui_results = get_branch_ui_fixtures_results(