Skip to content

Commit

Permalink
chore: added ci options for frontend and backend
Browse files Browse the repository at this point in the history
  • Loading branch information
raaymax committed Feb 16, 2024
1 parent bb2edd3 commit 24ed53b
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions alfred/ci.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,15 @@


@alfred.command("ci", help="continuous integration pipeline")
def ci():
alfred.invoke_command("ci.mypy")
alfred.invoke_command("ci.pytest")
alfred.invoke_command("npm.lint")
alfred.invoke_command("npm.build")

@alfred.option('--front', help="run for frontend only", is_flag=True, default=False)
@alfred.option('--back', help="run for backend only", is_flag=True, default=False)
def ci(front, back):
if back or (not front and not back):
alfred.invoke_command("ci.mypy")
alfred.invoke_command("ci.pytest")
if front or (not front and not back):
alfred.invoke_command("npm.lint")
alfred.invoke_command("npm.build")

@alfred.command("ci.mypy", help="typing checking with mypy on ./src/streamsync")
def ci_mypy():
Expand Down

0 comments on commit 24ed53b

Please sign in to comment.