Skip to content

Commit

Permalink
feat(tests): flip the default service for update_fixtures.py ci to …
Browse files Browse the repository at this point in the history
…github

now that we don't really use gitlab anymore
  • Loading branch information
matejcik committed Sep 10, 2024
1 parent a4ddbe7 commit 75066d4
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions tests/update_fixtures.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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,
Expand All @@ -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(
Expand Down

0 comments on commit 75066d4

Please sign in to comment.