Skip to content

Commit d5d6184

Browse files
committed
Fix CI
1 parent 94fd902 commit d5d6184

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

adit_radis_shared/commands/compose_up.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def call():
1616
parser.add_argument("--build", action="store_true", help="Build images before starting")
1717
parser.add_argument("--profile", action="append", help="Docker compose profile(s) to use")
1818
argcomplete.autocomplete(parser)
19-
args = parser.parse_args(namespace=Namespace())
19+
args, extra_args = parser.parse_known_args(namespace=Namespace())
2020

2121
helper = CommandHelper()
2222
helper.prepare_environment()
@@ -32,5 +32,8 @@ def call():
3232
cmd += f" --build-arg PROJECT_VERSION={helper.get_project_version()}-local"
3333
helper.execute_cmd(cmd)
3434

35-
cmd = f"{helper.build_compose_cmd(args.profile)} up --no-build --detach"
35+
cmd = f"{helper.build_compose_cmd(args.profile)} up --detach"
36+
if extra_args:
37+
cmd += " " + " ".join(extra_args)
38+
3639
helper.execute_cmd(cmd)

adit_radis_shared/commands/test.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ def call():
1818

1919
cmd = (
2020
f"{helper.build_compose_cmd()} exec "
21-
f"--env DJANGO_SETTINGS_MODULE={helper.project_id}.settings.test web pytest "
21+
f"--env DJANGO_SETTINGS_MODULE={helper.project_id}.settings.test web pytest"
2222
)
23-
cmd += " ".join(extra_args)
23+
if extra_args:
24+
cmd += " " + " ".join(extra_args)
25+
2426
helper.execute_cmd(cmd)

0 commit comments

Comments
 (0)