From 98ee955ab676926c41a60b16e140e336ce28e1d5 Mon Sep 17 00:00:00 2001 From: Daniel McGregor Date: Fri, 21 Apr 2023 12:46:49 +0800 Subject: [PATCH] fix: Fix typo when executing deploy action (#20) --- .github/workflows/check-python.yaml | 1 - template_content/smart_contracts/__main__.py.jinja | 2 +- .../test_default_parameters/smart_contracts/__main__.py | 2 +- .../test_deployment_language-python/smart_contracts/__main__.py | 2 +- .../test_ide_vscode-False/smart_contracts/__main__.py | 2 +- .../test_ide_vscode-True/smart_contracts/__main__.py | 2 +- .../test_python_linter-flake8/smart_contracts/__main__.py | 2 +- .../test_python_linter-none/smart_contracts/__main__.py | 2 +- .../test_python_linter-ruff/smart_contracts/__main__.py | 2 +- .../test_use_python_black-False/smart_contracts/__main__.py | 2 +- .../test_use_python_black-True/smart_contracts/__main__.py | 2 +- .../test_use_python_mypy-False/smart_contracts/__main__.py | 2 +- .../test_use_python_mypy-True/smart_contracts/__main__.py | 2 +- .../test_use_python_pip_audit-False/smart_contracts/__main__.py | 2 +- .../test_use_python_pip_audit-True/smart_contracts/__main__.py | 2 +- .../test_use_python_pytest-False/smart_contracts/__main__.py | 2 +- .../test_use_python_pytest-True/smart_contracts/__main__.py | 2 +- 17 files changed, 16 insertions(+), 17 deletions(-) diff --git a/.github/workflows/check-python.yaml b/.github/workflows/check-python.yaml index 4fd5621d..4d31c950 100644 --- a/.github/workflows/check-python.yaml +++ b/.github/workflows/check-python.yaml @@ -54,4 +54,3 @@ jobs: git add -N ./tests_generated # Look for changes in generated templates and error if there are any git diff --exit-code --minimal ./tests_generated - working-directory: ${{ inputs.working-directory }} \ No newline at end of file diff --git a/template_content/smart_contracts/__main__.py.jinja b/template_content/smart_contracts/__main__.py.jinja index 9b6c450d..15cc9c67 100644 --- a/template_content/smart_contracts/__main__.py.jinja +++ b/template_content/smart_contracts/__main__.py.jinja @@ -28,7 +28,7 @@ def main(action: str) -> None: {%- if deployment_language == 'python' %} case "deploy": for app in config.contracts: - logger.info(f"Building app {app.name}") + logger.info(f"Deploying app {app.name}") app_spec_path = artifact_path / app.name / "application.json" deploy(app_spec_path, config.deploy) case "all": diff --git a/tests_generated/test_default_parameters/smart_contracts/__main__.py b/tests_generated/test_default_parameters/smart_contracts/__main__.py index 7023830e..cb0ddc04 100644 --- a/tests_generated/test_default_parameters/smart_contracts/__main__.py +++ b/tests_generated/test_default_parameters/smart_contracts/__main__.py @@ -26,7 +26,7 @@ def main(action: str) -> None: build(artifact_path / app.name, app) case "deploy": for app in config.contracts: - logger.info(f"Building app {app.name}") + logger.info(f"Deploying app {app.name}") app_spec_path = artifact_path / app.name / "application.json" deploy(app_spec_path, config.deploy) case "all": diff --git a/tests_generated/test_deployment_language-python/smart_contracts/__main__.py b/tests_generated/test_deployment_language-python/smart_contracts/__main__.py index 7023830e..cb0ddc04 100644 --- a/tests_generated/test_deployment_language-python/smart_contracts/__main__.py +++ b/tests_generated/test_deployment_language-python/smart_contracts/__main__.py @@ -26,7 +26,7 @@ def main(action: str) -> None: build(artifact_path / app.name, app) case "deploy": for app in config.contracts: - logger.info(f"Building app {app.name}") + logger.info(f"Deploying app {app.name}") app_spec_path = artifact_path / app.name / "application.json" deploy(app_spec_path, config.deploy) case "all": diff --git a/tests_generated/test_ide_vscode-False/smart_contracts/__main__.py b/tests_generated/test_ide_vscode-False/smart_contracts/__main__.py index 7023830e..cb0ddc04 100644 --- a/tests_generated/test_ide_vscode-False/smart_contracts/__main__.py +++ b/tests_generated/test_ide_vscode-False/smart_contracts/__main__.py @@ -26,7 +26,7 @@ def main(action: str) -> None: build(artifact_path / app.name, app) case "deploy": for app in config.contracts: - logger.info(f"Building app {app.name}") + logger.info(f"Deploying app {app.name}") app_spec_path = artifact_path / app.name / "application.json" deploy(app_spec_path, config.deploy) case "all": diff --git a/tests_generated/test_ide_vscode-True/smart_contracts/__main__.py b/tests_generated/test_ide_vscode-True/smart_contracts/__main__.py index 7023830e..cb0ddc04 100644 --- a/tests_generated/test_ide_vscode-True/smart_contracts/__main__.py +++ b/tests_generated/test_ide_vscode-True/smart_contracts/__main__.py @@ -26,7 +26,7 @@ def main(action: str) -> None: build(artifact_path / app.name, app) case "deploy": for app in config.contracts: - logger.info(f"Building app {app.name}") + logger.info(f"Deploying app {app.name}") app_spec_path = artifact_path / app.name / "application.json" deploy(app_spec_path, config.deploy) case "all": diff --git a/tests_generated/test_python_linter-flake8/smart_contracts/__main__.py b/tests_generated/test_python_linter-flake8/smart_contracts/__main__.py index 7023830e..cb0ddc04 100644 --- a/tests_generated/test_python_linter-flake8/smart_contracts/__main__.py +++ b/tests_generated/test_python_linter-flake8/smart_contracts/__main__.py @@ -26,7 +26,7 @@ def main(action: str) -> None: build(artifact_path / app.name, app) case "deploy": for app in config.contracts: - logger.info(f"Building app {app.name}") + logger.info(f"Deploying app {app.name}") app_spec_path = artifact_path / app.name / "application.json" deploy(app_spec_path, config.deploy) case "all": diff --git a/tests_generated/test_python_linter-none/smart_contracts/__main__.py b/tests_generated/test_python_linter-none/smart_contracts/__main__.py index 7023830e..cb0ddc04 100644 --- a/tests_generated/test_python_linter-none/smart_contracts/__main__.py +++ b/tests_generated/test_python_linter-none/smart_contracts/__main__.py @@ -26,7 +26,7 @@ def main(action: str) -> None: build(artifact_path / app.name, app) case "deploy": for app in config.contracts: - logger.info(f"Building app {app.name}") + logger.info(f"Deploying app {app.name}") app_spec_path = artifact_path / app.name / "application.json" deploy(app_spec_path, config.deploy) case "all": diff --git a/tests_generated/test_python_linter-ruff/smart_contracts/__main__.py b/tests_generated/test_python_linter-ruff/smart_contracts/__main__.py index 7023830e..cb0ddc04 100644 --- a/tests_generated/test_python_linter-ruff/smart_contracts/__main__.py +++ b/tests_generated/test_python_linter-ruff/smart_contracts/__main__.py @@ -26,7 +26,7 @@ def main(action: str) -> None: build(artifact_path / app.name, app) case "deploy": for app in config.contracts: - logger.info(f"Building app {app.name}") + logger.info(f"Deploying app {app.name}") app_spec_path = artifact_path / app.name / "application.json" deploy(app_spec_path, config.deploy) case "all": diff --git a/tests_generated/test_use_python_black-False/smart_contracts/__main__.py b/tests_generated/test_use_python_black-False/smart_contracts/__main__.py index 7023830e..cb0ddc04 100644 --- a/tests_generated/test_use_python_black-False/smart_contracts/__main__.py +++ b/tests_generated/test_use_python_black-False/smart_contracts/__main__.py @@ -26,7 +26,7 @@ def main(action: str) -> None: build(artifact_path / app.name, app) case "deploy": for app in config.contracts: - logger.info(f"Building app {app.name}") + logger.info(f"Deploying app {app.name}") app_spec_path = artifact_path / app.name / "application.json" deploy(app_spec_path, config.deploy) case "all": diff --git a/tests_generated/test_use_python_black-True/smart_contracts/__main__.py b/tests_generated/test_use_python_black-True/smart_contracts/__main__.py index 7023830e..cb0ddc04 100644 --- a/tests_generated/test_use_python_black-True/smart_contracts/__main__.py +++ b/tests_generated/test_use_python_black-True/smart_contracts/__main__.py @@ -26,7 +26,7 @@ def main(action: str) -> None: build(artifact_path / app.name, app) case "deploy": for app in config.contracts: - logger.info(f"Building app {app.name}") + logger.info(f"Deploying app {app.name}") app_spec_path = artifact_path / app.name / "application.json" deploy(app_spec_path, config.deploy) case "all": diff --git a/tests_generated/test_use_python_mypy-False/smart_contracts/__main__.py b/tests_generated/test_use_python_mypy-False/smart_contracts/__main__.py index 7023830e..cb0ddc04 100644 --- a/tests_generated/test_use_python_mypy-False/smart_contracts/__main__.py +++ b/tests_generated/test_use_python_mypy-False/smart_contracts/__main__.py @@ -26,7 +26,7 @@ def main(action: str) -> None: build(artifact_path / app.name, app) case "deploy": for app in config.contracts: - logger.info(f"Building app {app.name}") + logger.info(f"Deploying app {app.name}") app_spec_path = artifact_path / app.name / "application.json" deploy(app_spec_path, config.deploy) case "all": diff --git a/tests_generated/test_use_python_mypy-True/smart_contracts/__main__.py b/tests_generated/test_use_python_mypy-True/smart_contracts/__main__.py index 7023830e..cb0ddc04 100644 --- a/tests_generated/test_use_python_mypy-True/smart_contracts/__main__.py +++ b/tests_generated/test_use_python_mypy-True/smart_contracts/__main__.py @@ -26,7 +26,7 @@ def main(action: str) -> None: build(artifact_path / app.name, app) case "deploy": for app in config.contracts: - logger.info(f"Building app {app.name}") + logger.info(f"Deploying app {app.name}") app_spec_path = artifact_path / app.name / "application.json" deploy(app_spec_path, config.deploy) case "all": diff --git a/tests_generated/test_use_python_pip_audit-False/smart_contracts/__main__.py b/tests_generated/test_use_python_pip_audit-False/smart_contracts/__main__.py index 7023830e..cb0ddc04 100644 --- a/tests_generated/test_use_python_pip_audit-False/smart_contracts/__main__.py +++ b/tests_generated/test_use_python_pip_audit-False/smart_contracts/__main__.py @@ -26,7 +26,7 @@ def main(action: str) -> None: build(artifact_path / app.name, app) case "deploy": for app in config.contracts: - logger.info(f"Building app {app.name}") + logger.info(f"Deploying app {app.name}") app_spec_path = artifact_path / app.name / "application.json" deploy(app_spec_path, config.deploy) case "all": diff --git a/tests_generated/test_use_python_pip_audit-True/smart_contracts/__main__.py b/tests_generated/test_use_python_pip_audit-True/smart_contracts/__main__.py index 7023830e..cb0ddc04 100644 --- a/tests_generated/test_use_python_pip_audit-True/smart_contracts/__main__.py +++ b/tests_generated/test_use_python_pip_audit-True/smart_contracts/__main__.py @@ -26,7 +26,7 @@ def main(action: str) -> None: build(artifact_path / app.name, app) case "deploy": for app in config.contracts: - logger.info(f"Building app {app.name}") + logger.info(f"Deploying app {app.name}") app_spec_path = artifact_path / app.name / "application.json" deploy(app_spec_path, config.deploy) case "all": diff --git a/tests_generated/test_use_python_pytest-False/smart_contracts/__main__.py b/tests_generated/test_use_python_pytest-False/smart_contracts/__main__.py index 7023830e..cb0ddc04 100644 --- a/tests_generated/test_use_python_pytest-False/smart_contracts/__main__.py +++ b/tests_generated/test_use_python_pytest-False/smart_contracts/__main__.py @@ -26,7 +26,7 @@ def main(action: str) -> None: build(artifact_path / app.name, app) case "deploy": for app in config.contracts: - logger.info(f"Building app {app.name}") + logger.info(f"Deploying app {app.name}") app_spec_path = artifact_path / app.name / "application.json" deploy(app_spec_path, config.deploy) case "all": diff --git a/tests_generated/test_use_python_pytest-True/smart_contracts/__main__.py b/tests_generated/test_use_python_pytest-True/smart_contracts/__main__.py index 7023830e..cb0ddc04 100644 --- a/tests_generated/test_use_python_pytest-True/smart_contracts/__main__.py +++ b/tests_generated/test_use_python_pytest-True/smart_contracts/__main__.py @@ -26,7 +26,7 @@ def main(action: str) -> None: build(artifact_path / app.name, app) case "deploy": for app in config.contracts: - logger.info(f"Building app {app.name}") + logger.info(f"Deploying app {app.name}") app_spec_path = artifact_path / app.name / "application.json" deploy(app_spec_path, config.deploy) case "all":