diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d4b0229..8f96bad 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,6 +1,6 @@ name: Integration Tests -on: [push] +on: [push, pull_request] jobs: build: diff --git a/dvuploader/cli.py b/dvuploader/cli.py index ca74bd1..4897a8e 100644 --- a/dvuploader/cli.py +++ b/dvuploader/cli.py @@ -90,7 +90,7 @@ def _validate_inputs( @app.command() def main( - filepaths: List[str] = typer.Argument( + filepaths: Optional[List[str]] = typer.Argument( default=None, help="A list of filepaths to upload.", ), @@ -141,6 +141,10 @@ def main( Upload files via config file: $ dvuploader --config-path upload_config.yaml """ + + if filepaths is None: + filepaths = [] + _validate_inputs( filepaths=filepaths, pid=pid,